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

Explanation

URI stands for Uniform Resource Identifier. Each resource in REST architecture is identified by its URI.

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.

Q 5 - Which of the following directive of Cache Control Header of HTTP response indicates that resource is cachable by only client and server?

A - Public

B - Private

C - no-cache/no-store

D - max-age

Answer : B

Explanation

Private directive indicates that resource is cachable by only client and server, no intermediary can cache the resource.

Q 6 - Which of the following HTTP Status code means CREATED, when a resource is successful created using POST or PUT request?

A - 200

B - 201

C - 204

D - 304

Answer : B

Explanation

HTTP Status Code 201 means CREATED, when a resource is successful created using POST or PUT request.

Q 7 - Which of the following HTTP Status code means INTERNAL SERVER ERROR, states that server has thrown some exception while executing the method?

A - 500

B - 401

C - 404

D - 409

Answer : A

Explanation

HTTP Status Code 500 means INTERNAL SERVER ERROR, states that server has thrown some exception while executing the method.

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

A - @CookieParam

B - @FormParam

C - @DefaultValue

D - @Context

Answer : C

Explanation

@DefaultValue − Assigns a default value to a parameter passed to method.

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