Last Updated On
Are you familiar with Rest API and want to test your understanding? This post contains 25 useful Rest API multiple-choice questions (quiz) to self-test your knowledge of Rest API .
You can find the questions for the below-mentioned answers in this post –
Rest API Multiple Choice Questions – MCQ1
Answers
1) 2) Representational State Transfer
2) 2) HTTP
3) 4) Request Header
4) 3) Both (1) and (2)
5) 2) 404
6) 1) 500
7) 3) Success
8) 1) CREATE
9) 1) POST
10) 2) PUT
11) 1) /{resource}/{resource-id}/{sub-resource}/{sub-resource-id}
12) 2) Created
13) 1) GET, POST, PUT, DELETE
14) 2) DELETE
15) 1) GET /users/{id}
16) 1) 403
17) 3) The resource requested has been found and moved temporarily to new URL location.
18) 4) Informational
19) 2) PUT updates the entire resource, while PATCH updates only specific fields of a resource
20) 2) It defines the format of the request payload
21) 3) It provides authentication credentials for accessing protected resources
22) 2) The property that a method can be called multiple times without different outcomes
23) 2) To retrieve the communication options available on a resource or server
24) 3) curl
25) 4) no-cache/no-store