RESTful Online Quiz


Advertisements

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 : B

Explanation

Completeness: Format should be able to represent a resource completely. For example, a resource can contain another resource. Format should be able to represent simple as well as complex structures of resources.

Q 2 - Which of the following component of HTTP request is used to indicate HTTP version?

A - VERB

B - URI

C - HTTP Version

D - Request Header

Answer : C

Explanation

HTTP Version − Indicate HTTP version, for example HTTP v1.1 .

Answer : C

Explanation

Addressing refers to locating a resource or multiple resources lying on the server. It is analogous to locate a postal address of a person.

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

A - OPTIONS

B - DELETE

C - POST

D - HEAD

Answer : B

Explanation

DELETE opearations should be idempotent, means their result will always same no matter how many times these operations are invoked.

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 HTTP header?

A - @PathParam

B - @QueryParam

C - @MatrixParam

D - @HeaderParam

Answer : D

Explanation

@HeaderParam − Binds the parameter passed to method to a HTTP header.

Q 9 - REST is web standards based architecture and uses HTTP Protocol for data communication.

A - false

B - true

Answer : B

Explanation

REST is web standards based architecture and uses HTTP Protocol for data communication.

Q 10 - GET opearations should be readonly.

A - true

B - false

Answer : A

Explanation

GET opearations should be readonly.

restful_questions_answers.htm
Advertisements