Worksheetsintroduction to API
Total questions: 12
Worksheet time: 4mins
What does API stand for?
Automated Program Integration
Application Programming Interface
Application Process Implementation
Advanced Protocol Interaction
What is the main purpose of an API?
To connect different software applications
To design User Interface
To store data in a database
To debug software issues
Why are APIs used in software development?
To automate manual tasks
To allow different systems to communicate
To create complex UI designs
To secure software from external threats
Which of these is a key feature of REST APIs?
Uses stateful communication
Requires a graphical user interface
Operates over HTTP and supports statelessness
Only works with XML data
In the URL https://example.com:8080/path?name=John, what does 8080 represent?
Port number
Query parameter
Resource path
Status code
Which HTTP request method is used to partially update a resource?
GET
PUT
PATCH
DELETE
What is the purpose of the POST HTTP method?
To retrieve data from the server
To delete a resource from the server
To create or add new resources
To update an existing resource
In the URL https://example.com/products, what is products?
Domain
Protocol
Path
Port
What does the HTTP status code 200 indicate
Resource not found
Request was successful
Client error occurred
Server error occurred
Which status code indicates that a resource was not found?
200
301
500
404
Why is API documentation important?
It secures the API from external access
It reduces the size of the API response
It helps developers understand how to use the API
It enables real-time debugging
What is an API's "rate limit"?
The maximum number of API calls a client can make in a given time period
The minimum response time of the API
The speed at which the server processes API requests
The average latency of the API calls
