Application Program Interface (API) and Libraries - AP Computer Science A
Card 1 of 30
Identify a common response format in APIs.
Identify a common response format in APIs.
Tap to reveal answer
XML. XML provides structured data format alternative to JSON.
XML. XML provides structured data format alternative to JSON.
← Didn't Know|Knew It →
What is an endpoint in an API?
What is an endpoint in an API?
Tap to reveal answer
A specific URL where API requests are addressed. Endpoints define specific access points for API functionality.
A specific URL where API requests are addressed. Endpoints define specific access points for API functionality.
← Didn't Know|Knew It →
Define 'REST' in the context of APIs.
Define 'REST' in the context of APIs.
Tap to reveal answer
Representational State Transfer, an architectural style for APIs. REST defines principles for stateless, scalable web services.
Representational State Transfer, an architectural style for APIs. REST defines principles for stateless, scalable web services.
← Didn't Know|Knew It →
Identify one standard format for API data exchange.
Identify one standard format for API data exchange.
Tap to reveal answer
JSON (JavaScript Object Notation). JSON is lightweight and widely used for API data transmission.
JSON (JavaScript Object Notation). JSON is lightweight and widely used for API data transmission.
← Didn't Know|Knew It →
What is the role of an API key?
What is the role of an API key?
Tap to reveal answer
Authenticates requests to an API. API keys verify identity and control access to services.
Authenticates requests to an API. API keys verify identity and control access to services.
← Didn't Know|Knew It →
Find and correct the error: 'https:/api.example.com/data'.
Find and correct the error: 'https:/api.example.com/data'.
Tap to reveal answer
Correct: 'https://api.example.com/data'. Missing second slash after 'https:' in the URL protocol.
Correct: 'https://api.example.com/data'. Missing second slash after 'https:' in the URL protocol.
← Didn't Know|Knew It →
What is a common protocol used with web APIs?
What is a common protocol used with web APIs?
Tap to reveal answer
HTTP/HTTPS. HTTPS ensures secure, encrypted communication for web APIs.
HTTP/HTTPS. HTTPS ensures secure, encrypted communication for web APIs.
← Didn't Know|Knew It →
Identify an advantage of using APIs in web development.
Identify an advantage of using APIs in web development.
Tap to reveal answer
Facilitates integration with third-party services. APIs enable seamless connection to external services and data.
Facilitates integration with third-party services. APIs enable seamless connection to external services and data.
← Didn't Know|Knew It →
What is an SDK?
What is an SDK?
Tap to reveal answer
Software Development Kit, a collection of tools for developers. SDKs provide libraries, documentation, and tools for development.
Software Development Kit, a collection of tools for developers. SDKs provide libraries, documentation, and tools for development.
← Didn't Know|Knew It →
Which API architecture style uses XML and SOAP?
Which API architecture style uses XML and SOAP?
Tap to reveal answer
SOAP (Simple Object Access Protocol). SOAP uses XML messaging for structured web service communication.
SOAP (Simple Object Access Protocol). SOAP uses XML messaging for structured web service communication.
← Didn't Know|Knew It →
What is the function of a 'callback' in APIs?
What is the function of a 'callback' in APIs?
Tap to reveal answer
A function passed as an argument to be executed later. Callbacks enable asynchronous programming and event handling.
A function passed as an argument to be executed later. Callbacks enable asynchronous programming and event handling.
← Didn't Know|Knew It →
What is the purpose of versioning in APIs?
What is the purpose of versioning in APIs?
Tap to reveal answer
To manage changes and backward compatibility. Versioning maintains compatibility while allowing API evolution.
To manage changes and backward compatibility. Versioning maintains compatibility while allowing API evolution.
← Didn't Know|Knew It →
Identify the HTTP status code for a successful API request.
Identify the HTTP status code for a successful API request.
Tap to reveal answer
200 OK. Standard HTTP response indicating successful request completion.
200 OK. Standard HTTP response indicating successful request completion.
← Didn't Know|Knew It →
Identify the HTTP status code for a 'Not Found' error.
Identify the HTTP status code for a 'Not Found' error.
Tap to reveal answer
404 Not Found. Indicates the requested resource could not be located.
404 Not Found. Indicates the requested resource could not be located.
← Didn't Know|Knew It →
What does CRUD stand for in API operations?
What does CRUD stand for in API operations?
Tap to reveal answer
Create, Read, Update, Delete. CRUD represents the four basic database operations.
Create, Read, Update, Delete. CRUD represents the four basic database operations.
← Didn't Know|Knew It →
What is a 'webhook' in API terminology?
What is a 'webhook' in API terminology?
Tap to reveal answer
An HTTP callback triggered by an event. Webhooks enable real-time notifications and automated responses.
An HTTP callback triggered by an event. Webhooks enable real-time notifications and automated responses.
← Didn't Know|Knew It →
Which HTTP method is used to update a resource in an API?
Which HTTP method is used to update a resource in an API?
Tap to reveal answer
PUT. PUT completely replaces an existing resource with new data.
PUT. PUT completely replaces an existing resource with new data.
← Didn't Know|Knew It →
What is the primary benefit of microservices architecture with APIs?
What is the primary benefit of microservices architecture with APIs?
Tap to reveal answer
Scalability and independent deployment of services. Microservices enable modular, scalable application architecture.
Scalability and independent deployment of services. Microservices enable modular, scalable application architecture.
← Didn't Know|Knew It →
What is an API gateway?
What is an API gateway?
Tap to reveal answer
A server that acts as an entry point for APIs. Gateways manage API traffic, security, and routing centrally.
A server that acts as an entry point for APIs. Gateways manage API traffic, security, and routing centrally.
← Didn't Know|Knew It →
Identify a primary feature of RESTful APIs.
Identify a primary feature of RESTful APIs.
Tap to reveal answer
Stateless communication. Each request contains all necessary information independently.
Stateless communication. Each request contains all necessary information independently.
← Didn't Know|Knew It →
What is 'OAuth' in the context of APIs?
What is 'OAuth' in the context of APIs?
Tap to reveal answer
An open standard for access delegation. OAuth provides secure authorization without sharing passwords.
An open standard for access delegation. OAuth provides secure authorization without sharing passwords.
← Didn't Know|Knew It →
What does API stand for in computer science?
What does API stand for in computer science?
Tap to reveal answer
Application Program Interface. Standard acronym for interface that enables software interaction.
Application Program Interface. Standard acronym for interface that enables software interaction.
← Didn't Know|Knew It →
Define a library in the context of programming.
Define a library in the context of programming.
Tap to reveal answer
A collection of precompiled routines a program can use. Pre-written code modules that developers can reuse in their programs.
A collection of precompiled routines a program can use. Pre-written code modules that developers can reuse in their programs.
← Didn't Know|Knew It →
What is the primary purpose of an API?
What is the primary purpose of an API?
Tap to reveal answer
To allow different software applications to communicate. APIs enable software components to exchange data and functionality.
To allow different software applications to communicate. APIs enable software components to exchange data and functionality.
← Didn't Know|Knew It →
Identify a key benefit of using libraries in software development.
Identify a key benefit of using libraries in software development.
Tap to reveal answer
Reduces code duplication and development time. Libraries provide reusable code, saving developers time and effort.
Reduces code duplication and development time. Libraries provide reusable code, saving developers time and effort.
← Didn't Know|Knew It →
What is an endpoint in an API?
What is an endpoint in an API?
Tap to reveal answer
A specific URL where API requests are addressed. Endpoints define specific access points for API functionality.
A specific URL where API requests are addressed. Endpoints define specific access points for API functionality.
← Didn't Know|Knew It →
Which HTTP method is typically used to retrieve data in an API?
Which HTTP method is typically used to retrieve data in an API?
Tap to reveal answer
GET. GET requests fetch data without modifying server state.
GET. GET requests fetch data without modifying server state.
← Didn't Know|Knew It →
What is meant by API throttling?
What is meant by API throttling?
Tap to reveal answer
Controlling the usage of an API by limiting requests. Throttling prevents server overload by controlling request rates.
Controlling the usage of an API by limiting requests. Throttling prevents server overload by controlling request rates.
← Didn't Know|Knew It →
Define 'endpoint' in the context of APIs.
Define 'endpoint' in the context of APIs.
Tap to reveal answer
A specific function or service exposed by an API. Endpoints are specific URLs that provide access to API functions.
A specific function or service exposed by an API. Endpoints are specific URLs that provide access to API functions.
← Didn't Know|Knew It →
What does CORS stand for in web APIs?
What does CORS stand for in web APIs?
Tap to reveal answer
Cross-Origin Resource Sharing. CORS allows web pages to access resources from different domains.
Cross-Origin Resource Sharing. CORS allows web pages to access resources from different domains.
← Didn't Know|Knew It →