AP Computer Science a Flashcards: Application Program Interface Api And Libraries

Study Application Program Interface Api And Libraries in AP Computer Science a with focused flashcards that help you recognize the idea, recall the key rule, and apply it in practice-style prompts.

AP Computer Science a

Application Program Interface Api And Libraries

0 mastered0 still learning

0% Complete

QUESTION
1/ 78

What is the function of a 'callback' in APIs?

Tap card or press Space to flip

ANSWER

A function passed as an argument to be executed later. Callbacks enable asynchronous programming and event handling.

How well did you know it?

Card 1 / 78

What this deck covers

This deck focuses on Application Program Interface Api And Libraries, giving you a quick way to review the definitions, rules, and examples that matter most for AP Computer Science a.

How to use these flashcards

Work through these flashcards in short sessions. Try to answer each prompt before flipping the card, then revisit any cards you miss until the explanation feels automatic.

All flashcards

Flashcard 1: What is the function of a 'callback' in APIs?

Answer: A function passed as an argument to be executed later. Callbacks enable asynchronous programming and event handling.

Flashcard 2: What is a 'webhook' in API terminology?

Answer: An HTTP callback triggered by an event. Webhooks enable real-time notifications and automated responses.

Flashcard 3: What is 'OAuth' in the context of APIs?

Answer: An open standard for access delegation. OAuth provides secure authorization without sharing passwords.

Flashcard 4: What is the function of a 'callback' in APIs?

Answer: A function passed as an argument to be executed later. Callbacks enable asynchronous programming and event handling.

Flashcard 5: What is an API endpoint response?

Answer: Data returned from an API upon request. Response contains the requested data or operation result.

Flashcard 6: Identify the role of an API client.

Answer: Requests services from an API. Clients consume API services and handle responses.

Flashcard 7: Find and correct the error: 'https:/api.example.com/data'.

Answer: Correct: 'https://api.example.com/data'. Missing second slash after 'https:' in the URL protocol.

Flashcard 8: Find and correct the error: 'https:/api.example.com/data'.

Answer: Correct: 'https://api.example.com/data'. Missing second slash after 'https:' in the URL protocol.

Flashcard 9: What is a common use of private APIs?

Answer: Internal company use to integrate systems. Private APIs connect internal systems within organizations.

Flashcard 10: Identify a common response format in APIs.

Answer: XML. XML provides structured data format alternative to JSON.

Flashcard 11: Identify a key benefit of using libraries in software development.

Answer: Reduces code duplication and development time. Libraries provide reusable code, saving developers time and effort.

Flashcard 12: Identify a key benefit of using libraries in software development.

Answer: Reduces code duplication and development time. Libraries provide reusable code, saving developers time and effort.

Flashcard 13: Which HTTP method is typically used to retrieve data in an API?

Answer: GET. GET requests fetch data without modifying server state.

Flashcard 14: What is an endpoint in an API?

Answer: A specific URL where API requests are addressed. Endpoints define specific access points for API functionality.

Flashcard 15: What is the primary benefit of microservices architecture with APIs?

Answer: Scalability and independent deployment of services. Microservices enable modular, scalable application architecture.

Flashcard 16: Define a library in the context of programming.

Answer: A collection of precompiled routines a program can use. Pre-written code modules that developers can reuse in their programs.

Flashcard 17: What is a common use of private APIs?

Answer: Internal company use to integrate systems. Private APIs connect internal systems within organizations.

Flashcard 18: Identify the HTTP status code for a 'Not Found' error.

Answer: 404 Not Found. Indicates the requested resource could not be located.

Flashcard 19: Which API architecture style uses XML and SOAP?

Answer: SOAP (Simple Object Access Protocol). SOAP uses XML messaging for structured web service communication.

Flashcard 20: What is an endpoint in an API?

Answer: A specific URL where API requests are addressed. Endpoints define specific access points for API functionality.

Flashcard 21: Which HTTP method is used to submit data to be processed by an API?

Answer: POST. POST sends data to create or process resources on the server.

Flashcard 22: Identify a primary feature of RESTful APIs.

Answer: Stateless communication. Each request contains all necessary information independently.

Flashcard 23: Identify one standard format for API data exchange.

Answer: JSON (JavaScript Object Notation). JSON is lightweight and widely used for API data transmission.

Flashcard 24: Identify an advantage of using APIs in web development.

Answer: Facilitates integration with third-party services. APIs enable seamless connection to external services and data.

Flashcard 25: What is the difference between PUT and PATCH methods?

Answer: PUT replaces a resource; PATCH updates part of a resource. PUT replaces entirely while PATCH modifies specific fields only.

Flashcard 26: Define a library in the context of programming.

Answer: A collection of precompiled routines a program can use. Pre-written code modules that developers can reuse in their programs.

Flashcard 27: What is an API gateway?

Answer: A server that acts as an entry point for APIs. Gateways manage API traffic, security, and routing centrally.

Flashcard 28: What does CORS stand for in web APIs?

Answer: Cross-Origin Resource Sharing. CORS allows web pages to access resources from different domains.

Flashcard 29: Define 'REST' in the context of APIs.

Answer: Representational State Transfer, an architectural style for APIs. REST defines principles for stateless, scalable web services.

Flashcard 30: Identify the HTTP status code for a successful API request.

Answer: 200 OK. Standard HTTP response indicating successful request completion.

Flashcard 31: What is the difference between PUT and PATCH methods?

Answer: PUT replaces a resource; PATCH updates part of a resource. PUT replaces entirely while PATCH modifies specific fields only.

Flashcard 32: Identify the HTTP status code for a successful API request.

Answer: 200 OK. Standard HTTP response indicating successful request completion.

Flashcard 33: What does CRUD stand for in API operations?

Answer: Create, Read, Update, Delete. CRUD represents the four basic database operations.

Flashcard 34: Identify one standard format for API data exchange.

Answer: JSON (JavaScript Object Notation). JSON is lightweight and widely used for API data transmission.

Flashcard 35: What is an SDK?

Answer: Software Development Kit, a collection of tools for developers. SDKs provide libraries, documentation, and tools for development.

Flashcard 36: Identify one use of a public API.

Answer: Enabling third-party developers to build on a platform. Public APIs enable external developers to create integrated applications.

Flashcard 37: What does API stand for in computer science?

Answer: Application Program Interface. Standard acronym for interface that enables software interaction.

Flashcard 38: Identify one use of a public API.

Answer: Enabling third-party developers to build on a platform. Public APIs enable external developers to create integrated applications.

Flashcard 39: What does CORS stand for in web APIs?

Answer: Cross-Origin Resource Sharing. CORS allows web pages to access resources from different domains.

Flashcard 40: What is a 'rate limit exceeded' error in an API?

Answer: Occurs when requests exceed the allowed limit. Error returned when API usage exceeds defined rate limits.

Flashcard 41: Which HTTP method is used to update a resource in an API?

Answer: PUT. PUT completely replaces an existing resource with new data.

Flashcard 42: What is an API gateway?

Answer: A server that acts as an entry point for APIs. Gateways manage API traffic, security, and routing centrally.

Flashcard 43: What is the primary purpose of an API?

Answer: To allow different software applications to communicate. APIs enable software components to exchange data and functionality.

Flashcard 44: What is a common protocol used with web APIs?

Answer: HTTP/HTTPS. HTTPS ensures secure, encrypted communication for web APIs.

Flashcard 45: What is meant by API throttling?

Answer: Controlling the usage of an API by limiting requests. Throttling prevents server overload by controlling request rates.

Flashcard 46: Which HTTP method is used to submit data to be processed by an API?

Answer: POST. POST sends data to create or process resources on the server.

Flashcard 47: Identify the role of an API client.

Answer: Requests services from an API. Clients consume API services and handle responses.

Flashcard 48: Which HTTP method is used to update a resource in an API?

Answer: PUT. PUT completely replaces an existing resource with new data.

Flashcard 49: What is the role of an API key?

Answer: Authenticates requests to an API. API keys verify identity and control access to services.

Flashcard 50: What is an SDK?

Answer: Software Development Kit, a collection of tools for developers. SDKs provide libraries, documentation, and tools for development.

Flashcard 51: What is a 'rate limit exceeded' error in an API?

Answer: Occurs when requests exceed the allowed limit. Error returned when API usage exceeds defined rate limits.

Flashcard 52: What is the purpose of API documentation?

Answer: To provide details on how to effectively use the API. Documentation guides developers on proper API implementation.

Flashcard 53: Define 'endpoint' in the context of APIs.

Answer: A specific function or service exposed by an API. Endpoints are specific URLs that provide access to API functions.

Flashcard 54: Identify an advantage of using APIs in web development.

Answer: Facilitates integration with third-party services. APIs enable seamless connection to external services and data.

Flashcard 55: Define 'REST' in the context of APIs.

Answer: Representational State Transfer, an architectural style for APIs. REST defines principles for stateless, scalable web services.

Flashcard 56: What is the purpose of versioning in APIs?

Answer: To manage changes and backward compatibility. Versioning maintains compatibility while allowing API evolution.

Flashcard 57: What is meant by API throttling?

Answer: Controlling the usage of an API by limiting requests. Throttling prevents server overload by controlling request rates.

Flashcard 58: In API documentation, what does 'rate limiting' refer to?

Answer: Restricting the number of API requests in a time frame. Rate limiting prevents API abuse and ensures fair usage.

Flashcard 59: Identify the HTTP status code for a 'Not Found' error.

Answer: 404 Not Found. Indicates the requested resource could not be located.

Flashcard 60: What is 'OAuth' in the context of APIs?

Answer: An open standard for access delegation. OAuth provides secure authorization without sharing passwords.

Flashcard 61: Which HTTP method is typically used to retrieve data in an API?

Answer: GET. GET requests fetch data without modifying server state.

Flashcard 62: Identify a common response format in APIs.

Answer: XML. XML provides structured data format alternative to JSON.

Flashcard 63: What is a 'sandbox' in API development?

Answer: A testing environment simulating production. Sandboxes provide safe environments for testing API integration.

Flashcard 64: What is an API endpoint response?

Answer: Data returned from an API upon request. Response contains the requested data or operation result.

Flashcard 65: What is the purpose of API documentation?

Answer: To provide details on how to effectively use the API. Documentation guides developers on proper API implementation.

Flashcard 66: In API documentation, what does 'rate limiting' refer to?

Answer: Restricting the number of API requests in a time frame. Rate limiting prevents API abuse and ensures fair usage.

Flashcard 67: What does CRUD stand for in API operations?

Answer: Create, Read, Update, Delete. CRUD represents the four basic database operations.

Flashcard 68: Define 'endpoint' in the context of APIs.

Answer: A specific function or service exposed by an API. Endpoints are specific URLs that provide access to API functions.

Flashcard 69: What does API stand for in computer science?

Answer: Application Program Interface. Standard acronym for interface that enables software interaction.

Flashcard 70: What is a 'sandbox' in API development?

Answer: A testing environment simulating production. Sandboxes provide safe environments for testing API integration.

Flashcard 71: What is a 'webhook' in API terminology?

Answer: An HTTP callback triggered by an event. Webhooks enable real-time notifications and automated responses.

Flashcard 72: What is the role of an API key?

Answer: Authenticates requests to an API. API keys verify identity and control access to services.

Flashcard 73: What is the primary purpose of an API?

Answer: To allow different software applications to communicate. APIs enable software components to exchange data and functionality.

Flashcard 74: What is a common protocol used with web APIs?

Answer: HTTP/HTTPS. HTTPS ensures secure, encrypted communication for web APIs.

Flashcard 75: Identify a primary feature of RESTful APIs.

Answer: Stateless communication. Each request contains all necessary information independently.

Flashcard 76: What is the purpose of versioning in APIs?

Answer: To manage changes and backward compatibility. Versioning maintains compatibility while allowing API evolution.

Flashcard 77: Which API architecture style uses XML and SOAP?

Answer: SOAP (Simple Object Access Protocol). SOAP uses XML messaging for structured web service communication.

Flashcard 78: What is the primary benefit of microservices architecture with APIs?

Answer: Scalability and independent deployment of services. Microservices enable modular, scalable application architecture.