wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

DevCamp Phase 1

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What is Django Rest Framework (DRF)?

a)

A web development framework

b)

A content management system

c)

A toolkit for building Web APIs in Django

d)

A database management system

2.

In Python, how do you call a function named "my_function"?

b)

call(my_function)

c)

my_function()

d)

call_function(my_function)

3.

What does REST stand for in the context of RESTful APIs?

a)

Representational State Transition

b)

Real-time State Transfer

c)

Resourceful State Transmission

d)

Representational State Transfer

4.

Which HTTP method is typically used to create a new resource on the server?

a)

GET

b)

POST

c)

PUT

d)

DELETE

5.

What is a dictionary in Python?

a)

A collection of ordered items

b)

A collection of key-value pairs, where each key is unique

c)

A list of integers

d)

A data structure for storing single values

6.

Which HTTP method is used to retrieve data from a server without causing any side effects?

a)

PUT

b)

GET

c)

POST

d)

DELETE

7.

In DRF, what is a serializer used for?

a)

Storing user sessions

b)

Managing database connections

c)

Handling user authentication

d)

Serializing complex data types to be converted to JSON

8.

Which HTTP method is commonly used to update an existing resource on the server?

a)

POST

b)

GET

c)

PUT

d)

DELETE

9.

What does API stand for?

a)

Automated Programming Interface

b)

Application Programming Interface

c)

Advanced Protocol Integration

d)

Automated Python Interaction

10.

In DRF, what is a ViewSet?

a)

A class that defines database schemas

b)

A class that combines the logic for multiple related views into a single class

c)

A Python decorator for view functions

d)

A class used for handling user authentication

11.

Which HTTP method is used to delete a resource on the server?

a)

DELETE

b)

PUT

c)

POST

d)

GET

12.

What is the purpose of the "urls.py" file in a Django project?

a)

To define the URL patterns and map them to views in your application

b)

To store CSS styles for your website

c)

To manage database migrations

d)

To define models for the database

13.

What is the primary role of the HTTP status code "200 OK"?

a)

Indicate that the request was successful

b)

Indicate an error in the request

c)

Deny access to a resource

d)

Redirect the client to a different URL

14.

What is the main advantage of using RESTful APIs?

a)

They provide a standardized way to interact with web services, making it easier to integrate different systems

b)

They make websites load faster

c)

They require minimal server resources

d)

They are suitable for handling binary data

15.

In DRF, what is the purpose of the "permissions" class?

a)

To control access to views based on user permissions and authentication

b)

To define the database schema

c)

To handle form validation

d)

To manage database connections