wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

API Class

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

What is an API?

a)

A database

b)

An intermediary between software systems

c)

A type of computer

d)

A programming language

2.

What does the status code 404 mean?

a)

Created

b)

Forbidden

c)

Not Found

d)

Bad Request

3.

What should you do BEFORE testing an API?

a)

Guess what the API does

b)

Understand the database

c)

Change the server settings

d)

Understand the requirements and documentation

4.

Which of the following is part of negative API testing?

a)

Sending valid data

b)

Following documentation perfectly

c)

Sending invalid inputs to test error handling

d)

Checking UI responsiveness

5.

If an API requires an API key but you send no key, what status code is most likely?

a)

401

b)

201

c)

500

d)

300

6.

Which API method is used to create new data?

a)

DELETE

b)

PATCH

c)

POST

d)

GET

7.

In REST architecture, what does “stateless” strictly imply?

a)

Server stores partial client context

b)

Server stores client session data

c)

Each request must contain all information needed to process it

d)

Client and server share cache state

8.

What is the primary difference between PUT and PATCH at the protocol level?

a)

PUT only works with JSON

b)

PATCH is deprecated

c)

PUT replaces the entire resource; PATCH modifies only specified fields

d)

PUT is asynchronous

9.

Manual testing in API means what?

a)

Writing code to test

b)

Using tools like Postman to send requests manually

c)

Writing test on excel

d)

Creating automation scripts only

10.

What was the color of Abby's shirt on the second presentation slides

a)

Pink

b)

Purple

c)

Black

d)

Blue