wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

History and Functionality of APIs

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

In which phase did commercial APIs like Salesforce, eBay, and Amazon first emerge?

a)

Phase 1: Commercial APIs

b)

Phase 2: Social Media APIs

c)

Phase 3: Cloud APIs

d)

Phase 4: APIs for Mobile Applications

2.

Which company introduced APIs that changed how we share information in the mid-2000s?

a)

Amazon

b)

Facebook

c)

Google

d)

Apple

3.

What marked a turning point in cloud computing APIs in 2006?

a)

The launch of Twitter’s API

b)

Amazon’s release of S3 and EC2

c)

The introduction of the iPhone

d)

Google’s release of Android

4.

What role did APIs play in the rise of mobile applications?

a)

They replaced the need for mobile apps entirely.

b)

They enabled apps like Instagram and Twilio to function.

c)

They were only used for gaming apps.

d)

They were irrelevant to mobile development.

5.

Which phase involved APIs connecting devices like Fitbit and Nest to the cloud?

a)

Phase 2: Social Media APIs

b)

Phase 3: Cloud APIs

c)

Phase 5: APIs for Connected Devices

d)

Phase 4: APIs for Mobile Applications

6.

What is the first step in the API request-response cycle?

a)

The API server processes the request.

b)

The API client sends a request.

c)

The API returns a status code.

d)

The user receives the response.

7.

Which of the following is NOT typically part of an API request?

a)

Endpoint

b)

HTTP Method

c)

Response Body

d)

Request Headers

8.

What does a 404 status code indicate in an API response?

a)

The request was successful.

b)

The server created a new resource.

c)

The requested resource was not found.

d)

The request was unauthorized.

9.

Which of the following is a benefit of using APIs?

a)

Increased manual workload

b)

Slower development cycles

c)

Enhanced security through authentication

d)

Higher costs due to third-party dependencies

10.

What is the main difference between private and public APIs?

a)

Private APIs are only for internal use, while public APIs are available to third-party developers.

b)

Private APIs are always free, while public APIs are paid.

c)

Public APIs are slower than private APIs.

d)

Private APIs cannot be secured.

11.

Which API architecture uses standard HTTP methods like GET and POST?

a)

SOAP

b)

REST

c)

GraphQL

d)

gRPC

12.

What is a key advantage of GraphQL over REST?

a)

It requires multiple requests to fetch related data.

b)

It allows clients to request only the data they need in a single query.

c)

It is slower due to XML-based messaging.

d)

It is only used for legacy systems.

13.

Which API type is best suited for event-driven automation?

a)

SOAP

b)

Webhooks

c)

REST

d)

gRPC

14.

What is a common use case for APIs in IoT?

a)

Sending printed letters

b)

Connecting smart devices to the cloud

c)

Replacing all mobile apps

d)

Only used for gaming consoles

15.

How do APIs help reduce costs for businesses?

a)

By requiring manual data entry for all processes

b)

By allowing reuse of existing third-party tools instead of building from scratch

c)

By making systems less scalable

d)

By increasing development time

16.

Which of the following best describes a partner API?

a)

An API that is freely available to the general public

b)

An API that is used only within a single organization

c)

An API that enables collaboration between specific authorized companies

d)

An API that does not require authentication

17.

What was a major innovation introduced by Amazon’s EC2 API in 2006?

a)

It allowed developers to make phone calls from cloud apps.

b)

It enabled API-driven infrastructure deployment for cloud applications.

c)

It replaced the need for social media APIs.

d)

It was the first API to use GraphQL.

18.

In the restaurant metaphor for APIs, what does the "kitchen staff" represent?

a)

The API client

b)

The API server

c)

The API endpoint

d)

The API documentation

19.

Which API architecture is known for using XML for structured messaging?

a)

REST

b)

SOAP

c)

GraphQL

d)

Webhooks

20.

How do APIs contribute to automation in software development?

a)

By requiring manual data entry for every task

b)

By eliminating the need for any third-party tools

c)

By allowing repetitive tasks to be handled programmatically

d)

By making systems less efficient