RESTful Online Quiz



Following quiz provides Multiple Choice Questions (MCQs) related to RESTful Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Answer : C

Explanation

REST uses various representations to represent a resource where text, JSON, XML. XML and JSON are the most popular representations of resources.

Q 2 - Which of the following component of HTTP response indicates server status for the requested resource?

A - Status/Response Code

B - HTTP Version

C - Response Header

D - Response Body

Answer : A

Explanation

Status/Response Code − Indicate Server status for the requested resource. For example 404 means resource not found and 200 means response is ok.

Q 3 - Which of the following is a best practice to create a standard URI for a web service?

A - Use Plural Noun.

B - Avoid using spaces.

C - Use lowercase letters

D - All of the above.

Answer : D

Explanation

All of the above options are correct.

Q 4 - Which of the following HTTP method should be read only in nature?

A - GET

B - DELETE

C - POST

D - PUT

Answer : A

Explanation

GET opearations should be read only.

Answer : D

Explanation

All of the above options are correct.

Q 8 - Which of the following annotation of JAX RS API binds the parameter passed to method to a form value?

A - @CookieParam

B - @FormParam

C - @DefaultValue

D - @Context

Answer : B

Explanation

@FormParam − Binds the parameter passed to method to a form value.

Q 9 - A web service is a collection of open protocols and standards used for exchanging data between applications or systems.

A - true

B - false

Answer : A

Explanation

A web service is a collection of open protocols and standards used for exchanging data between applications or systems.

Q 10 - Each resource in REST architecture is identified by its URI.

A - true

B - false

Answer : A

Explanation

Each resource in REST architecture is identified by its URI.

restful_questions_answers.htm
Advertisements