wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Nodejs: APIs

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

API(Application Programming Interface) is a general concept that referes to a set of rules and protocols that allow different software application to ______

a)

communicate and interact with each other

b)

communicate and interact with the Graphical User Interfacer(GUI)

c)

communicate and interact with the Command Line Interface(CLI)

d)

communicate and interact with the binary executable file

2.

What is the full meaning of REST in REST API

a)

Real State Transfer

b)

Read State Transfer

c)

Representational State Transfer

d)

Rep State Transfer

3.

What are the principles of REST API

a)

Resource-based

b)

Stateless

c)

Uniform Interface

d)

All of the options

4.

To test an API, what tool can I use

a)

API client

b)

API server

c)

API manager

d)

API checker

5.

What are some examples of API clients

a)

Postman

b)

Thunderclient

c)

All of the options

d)

Insomnia

6.

Which one of the following is the best approach for choosing an api endpoint for a list of books

{HttpMethod ResourceName}

a)

GET /book

b)

GET /books

c)

POST /book

d)

POST /books

7.

For filtering and sorting on API endpoints, what can we use?

a)

path param

b)

query params

c)

base path

d)

none of the options

8.

To access resources on an API server, what do we use?

a)

API accessors

b)

API endpoints

c)

API parmas

d)

API methods

9.

Choose the wrong option

a)

200 === ok/success

b)

400 === Too many request

c)

404 === Not found

d)

500 === Server Error

10.

What is the response format from an API server

a)

HTML/CSS

b)

JavaScript

c)

Nodejs scripts

d)

JSON