Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

API Styles Fundamentals

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

Which of the following is not an HTTP method?

a)

CREATE

b)

POST

c)

PUT

d)

OPTION

2.

How would you configure a RESTful URL parameter that supports a search for a book based on its ID?

a)

GET /{id}/books/

b)

GET /books/{id}

c)

GET /book?id={id}

d)

GET /books?id={id}

3.

Which header should be configured to tell the server XML is preferred over JSON?

a)

Accept

b)

Content-Type

c)

User-Agent

d)

GET

4.

The ability to invoke a RESTful method multiple times without changing the state of the server on subsequent invocations is known as:

a)

Idempotence

b)

Immutability

c)

Statefulness

d)

Uniformity

5.

For duplex communication we can’t use ____________

a)

Long Polling

b)

HTML5

c)

JavaScript

d)

Streaming

6.

When can Websocket be used?

a)

Shopping Websites

b)

Real-time applications

c)

Banking Websites

d)

NONE

7.

Websocket is a computer communications protocol, providing _________ communication channels over a single TCP connection.

a)

half-duplex

b)

one-direction

c)

full-duplex

d)

full dimensional

8.

Refer to the image. Choose the correct option:

a)

5 - Producer;

1 - Consumer;

2 - Channel;

3 - Exchange;

4 - Queue;

b)

3 - Producer;

2 - Channel;

1 - Exchange;

5 - Queue;

4 - Consumer;

c)

1 - Producer;

2 - Channel;

3 - Exchange;

4 - Queue;

5 - Consumer;

d)

4 - Channel;

2 - Exchange;

1 - Queue;

3 - Consumer;

5 - Producer;

9.

A queue must be bound to an exchange in order to receive messages from it

a)

True

b)

False

10.

What are the main GraphQL supported operations ?

a)

Only Query

b)

Query , Mutation and Subscription

c)

Only Mutation

d)

Query and Mutation