RESTful Online Quiz



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

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 fetch resource using RESTful web service?

A - GET

B - DELETE

C - PUT

D - OPTIONS

Answer : A

Explanation

GET opearations should be used to fetch resource using RESTful web service.

Q 5 - Which of the following directive of Cache Control Header of HTTP response indicates that resource is not cachable?

A - Public

B - Private

C - no-cache/no-store

D - max-age

Answer : C

Explanation

no-cache/no-store directive indicates that resource is not cachable.

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 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 - URI of HTTP request indicates HTTP methods to be executed by RESTful Web services.

A - false

B - true

Answer : A

Explanation

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

Q 10 - Response Header - Contains metadata for the HTTP Response message as key-value pairs.

A - true

B - false

Answer : A

Explanation

Response Header − Contains metadata for the HTTP Response message as key-value pairs.

restful_questions_answers.htm
Advertisements