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 indicates HTTP methods such as GET, POST, DELETE, PUT etc.?

A - VERB

B - URI

C - HTTP Version

D - Request Header

Answer : A

Explanation

Verb − Indicates HTTP methods such as GET, POST, DELETE, PUT etc.

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

A - Maintain Backward Compatibility

B - Use HTTP Verb

C - Both of the above.

D - None of the above.

Answer : C

Explanation

Both of the above options are correct.

Q 4 - Which of the following header of HTTP response, provides the date and time of the resource when it was created?

A - Date

B - Last Modified

C - Cache-Control

D - Expires

Answer : A

Explanation

Date header provides the date and time of the resource when it was created.

Q 5 - Which of the following header of HTTP response, provides the date and time of the resource when it was last modified?

A - Date

B - Last Modified

C - Cache-Control

D - Expires

Answer : B

Explanation

Last Modified header provides the date and time of the resource when it was last modified.

Q 6 - Which of the following HTTP Status code means NOT FOUND, states that method is not available?

A - 400

B - 401

C - 404

D - 409

Answer : C

Explanation

HTTP Status Code 404 means NOT FOUND, states that method is not available.

Q 7 - Which of the following annotation of JAX RS API is used to annotate a method used to delete resource?

A - @DELETE

B - @HEAD

C - @Produces

D - @Consumes

Answer : A

Explanation

@DELETE − HTTP Get request, used to delete resource.

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

A - @PathParam

B - @QueryParam

C - @MatrixParam

D - @HeaderParam

Answer : A

Explanation

@PathParam − Binds the parameter passed to method to a value in path.

Q 9 - RESTful web services use HTTP methods to implement the concept of REST architecture.

A - true

B - false

Answer : A

Explanation

RESTful web services use HTTP methods to implement the concept of REST architecture.

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