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

Q 2 - Which of the following component of HTTP request contains metadata for the HTTP Request message as key-value pairs?

A - VERB

B - URI

C - HTTP Version

D - Request Header

Answer : D

Explanation

Request Header − Contains metadata for the HTTP Request message as key-value pairs. For example, client ( or browser) type, format supported by client, format of message body, cache settings etc.

Answer : C

Explanation

Each resource in REST architecture is identified by its URI. Purpose of an URI is to locate a resource(s) on the server hosting the web service.

Q 4 - Which of the following HTTP method should be used to create/update resource using RESTful web service?

A - GET

B - DELETE

C - POST

D - OPTIONS

Answer : C

Explanation

POST opearations should be used to create/update resource using RESTful web service.

Answer : D

Explanation

All of the above options are correct.

Q 6 - Which of the following HTTP Status code means OK, shows success?

A - 200

B - 201

C - 204

D - 304

Answer : A

Explanation

HTTP Status Code 200 means OK, shows success.

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 - A RESTful web service client sends a message in form of a Gopher Request and server responds in form of a HTTP Response.

A - true

B - false

Answer : B

Explanation

A RESTful web service client sends a message in form of a HTTP Request and server responds in form of a HTTP Response.

Q 10 - GET opearations should be readonly.

A - true

B - false

Answer : A

Explanation

GET opearations should be readonly.


restful_questions_answers.htm

Advertisements