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

A web service is a collection of open protocols and standards used for exchanging data between applications or systems. Software applications written in various programming languages and running on various platforms can use web services to exchange data over computer networks like the Internet in a manner similar to inter-process communication on a single computer.

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 HTTP method should be used to get list the supported operations in RESTful web service?

A - GET

B - HEAD

C - PUT

D - OPTIONS

Answer : D

Explanation

OPTIONS opearations should be used to get list the supported operations in RESTful web service.

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 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 - 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 - Request Body - Contains Message content or Resource representation.

A - true

B - false

Answer : A

Explanation

Request Body − Contains Message content or Resource representation.

restful_questions_answers.htm
Advertisements