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 – MCQ2
Answers
1) 1) Application Programming Interface
2) 4) 405 Method Not Allowed
3) 2) Uniform Interface
4) 1) 403
5) 2) Idempotence
6) 1) a java library for testing Restful Web services
7) 2) Response will return the details of a specific employee
8) 1)
9) 2) Accept
10) 3) Both (1) and (2)
11) 2) @POST
12) 2) @DefaultValue
13) 1) @QueryParam
14) 3) 204
15) 1) Postman
16) 1) By passing credentials as part of request headers or body
Basic Authentication Example
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
17) 1) JavaScript Object Notation.
18) 3) JSON (JavaScript Object Notation)
19) 2) Using query parameters after the question mark (?)
https://api.example.com/users?id=123&name=Vibha
20) 1) XML (eXtensible Markup Language)
21) 1) application/json
22) 1) Using the statusCode()
method
23) 1) Using JSONPath expressions
24) 1) Yes
25) 1) Yes