wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Classes & Objects

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

The GET method is used to get data from a server.

a)

TRUE

b)

FALSE

2.

A 404 status code means the resource was not found.

a)

TRUE

b)

FALSE

3.

Flask is used to build APIs in Python.

a)

TRUE

b)

FALSE

4.

DELETE is used to remove data from the server.

a)

TRUE

b)

FALSE

5.

PUT is used to update existing data.

a)

TRUE

b)

FALSE

6.

Status code 500 means the server has an error.

a)

TRUE

b)

FALSE

7.

Status code 200 is a success status.

a)

TRUE

b)

FALSE

8.

The PUT method replaces existing data.

a)

TRUE

b)

FALSE

9.

Which HTTP method is used to get data from a server?

a)

POST

b)

GET

c)

PUT

d)

DELETE

10.

Which HTTP method is used to create new data?

a)

GET

b)

POST

c)

DELETE

d)

PUT

11.

What does status code 404 mean?

a)

Success

b)

Not Found

c)

Server Error

d)

Bad Request

12.

Which Python framework is simple and used to build APIs?

a)

Flask

b)

Django

c)

React

d)

Node

13.

Which tool is used to test Python code?

a)

Flask

b)

Pytest

c)

Pandas

d)

NumPy

14.

Which HTTP method removes data from the server?

a)

GET

b)

PUT

c)

DELETE

d)

POST

15.

Which status code means success?

a)

404

b)

500

c)

200

d)

301

16.

Which status code indicates a server error?

a)

404

b)

500

c)

200

d)

301

17.

Which method is used to update existing data?

a)

GET

b)

POST

c)

PUT

d)

DELETE

18.

What does the GET method do?

a)

Send data to the server

b)

Delete data from the server

c)

Retrieve data from the server

d)

Update existing data

19.

Which HTTP method sends data to a server?

a)

GET

b)

POST

c)

DELETE

d)

PUT

20.

What does the 200 status code indicate?

a)

Resource not found

b)

Success

c)

Bad request

d)

Server error