MTEL Digital Literacy and Computer Science

Category - Digital Lit and CS

For which of the following purposes would a Web developer want to gain access to an application programming interface (API)?
  1. Creating a script to add interactivity to a Web page.
  2. Building a style sheet to define a Web page's fonts and background colors.
  3. Accessing the nodes of a Web page's document object model (DOM).
  4. Embedding a map from a search engine company onto a Web page.
Explanation
Correct Response: D. The web page under development needs to communicate with a search engine to get a map to display, so it will use an API. A is incorrect because adding interactivity to a web page through a script does not require talking to another application, so no API access is needed. B is incorrect because building a style sheet does not require talking to another application, so no API access is needed. C is incorrect because accessing a web page’s DOM does not require talking to another application, so no API access is needed.
Was this helpful? Upvote!
Login to contribute your own answer or details

Top questions

Related questions

Most popular on PracticeQuiz