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 response indicates HTTP version?

A - Status/Response Code

B - HTTP Version

C - Response Header

D - Response Body

Answer : B

Explanation

HTTP Version − Indicate HTTP version, for example HTTP v1.1 .

Q 4 - Which of the following HTTP method should be read only in nature?

A - GET

B - DELETE

C - POST

D - PUT

Answer : A

Explanation

GET opearations should be read only.

Q 5 - Public directive of Cache Control Header of HTTP response indicates that resource is cachable by any component.

A - true

B - false

Answer : A

Explanation

Public directive indicates that resource is cachable by any component.

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 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 binds the parameter passed to method to a HTTP matrix parameter in path?

A - @PathParam

B - @QueryParam

C - @MatrixParam

D - @HeaderParam

Answer : C

Explanation

@MatrixParam − Binds the parameter passed to method to a HTTP matrix parameter 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 - 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