stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
API Testing Quiz Flashcards | StudBud
Explore
/
API Testing Quiz
API Testing Quiz
20 terms
·
StudBud Administration
·
6 plays
Imported from external platform
Flashcards
20 cards
F
Practice quiz
P
Host live
L
Questions
20
Answers
1
What is the primary advantage of using an API for testing?
It reduces network bandwidth
It ensures hardware compatibility
It is faster with no UI load time
It provides high-quality user interface
2
What does the "status code" in an API response indicate?
The number of requests made
The data type of the response
The type of error in the request
The outcome of the request
3
Which of the following is a characteristic of SOAP APIs?
They use only HTTP
They support multiple protocols
They only return data in XML format
They are lightweight and fast
4
What is an example of a query parameter in an API request?
Size=large
Data format
Authentication token
URL path
5
What is a query parameter in an API request used for?
To define the data format
To delete data
To filter or sort the data
To modify data
6
Which HTTP method would you use to modify existing data in an API?
DELETE
PUT
GET
POST
7
What type of data can be returned in a JSON response?
Arrays, numbers, strings, and objects
Only text data
Images only
Audio and video files
8
Which of the following is true about GraphQL APIs?
It is slower than REST
It uses multiple protocols
It uses multiple protocols
It gets all the data in a single request
9
What does API stand for?
Automated Process Integration
Application Programming Interface
Application Program Interaction
Active Process Integration
10
What is the "Primary" function of an API?
It stores data on a server
It processes high-performance computing tasks
It allows software applications to interact with each other
It manages user authentication
11
What does the request body in an API request typically contain?
Query parameters for sorting
Status code of the request
Data being sent in POST/PUT requests
Authentication tokens
12
Which data format is most commonly used for API responses?
CSV
JSON
XML
HTML
13
What is the "Base URL" in an API request?
The data returned
The main address of the API
The data format
The query parameters
14
What does an API response contain?
Authentication tokens
Only the status code
The base URL
The data returned by the API
15
Which HTTP method is used to retrieve data from an API?
PUT
GET
POST
DELETE
16
What is the purpose of HTTP headers in an API request?
To return data from the server
To provide additional information like authentication
To filter data
To specify the method (GET, POST, etc.)
17
Which of the following is NOT typically a component of an API request?
Status Code
Query Parameters
Headers
Base URL
18
Which method would you use to send data to an API to create something new?
PATCH
GET
POST
PUT
19
Which of the following is true about REST APIs?
They return XML data only
They require complex query languages
They use multiple protocols
They use HTTP only
20
What is JSON used for in APIs?
To encrypt data
To format the API response data
To display UI elements
To store user data