Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

introduction to API

Total questions: 12

Worksheet time: 4mins

Name
Class
Date
1.

What does API stand for?

a)

Automated Program Integration

b)

Application Programming Interface

c)

Application Process Implementation

d)

Advanced Protocol Interaction

2.

What is the main purpose of an API?

a)

To connect different software applications

b)

To design User Interface

c)

To store data in a database

d)

To debug software issues

3.

Why are APIs used in software development?

a)

To automate manual tasks

b)

To allow different systems to communicate

c)

To create complex UI designs

d)

To secure software from external threats

4.

Which of these is a key feature of REST APIs?

a)

Uses stateful communication

b)

Requires a graphical user interface

c)

Operates over HTTP and supports statelessness

d)

Only works with XML data

5.

In the URL https://example.com:8080/path?name=John, what does 8080 represent?

a)

Port number

b)

Query parameter

c)

Resource path

d)

Status code

6.

Which HTTP request method is used to partially update a resource?

a)

GET

b)

PUT

c)

PATCH

d)

DELETE

7.

What is the purpose of the POST HTTP method?

a)

To retrieve data from the server

b)

To delete a resource from the server

c)

To create or add new resources

d)

To update an existing resource

8.

In the URL https://example.com/products, what is products?

a)

Domain

b)

Protocol

c)

Path

d)

Port

9.

What does the HTTP status code 200 indicate

a)

Resource not found

b)

Request was successful

c)

Client error occurred

d)

Server error occurred

10.

Which status code indicates that a resource was not found?

a)

200

b)

301

c)

500

d)

404

11.

Why is API documentation important?

a)

It secures the API from external access

b)

It reduces the size of the API response

c)

It helps developers understand how to use the API

d)

It enables real-time debugging

12.

What is an API's "rate limit"?

a)

The maximum number of API calls a client can make in a given time period

b)

The minimum response time of the API

c)

The speed at which the server processes API requests

d)

The average latency of the API calls