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

Q 2 - Which of the following protocol is used by RESTful web services as a medium of communication between client and server?

A - HTTP

B - FTP

C - Gopher

D - None of the above.

Answer : A

Explanation

RESTful web services make use of HTTP protocol as a medium of communication between client and server.

Q 3 - Which of the following HTTP method should be idempotent in nature?

A - GET

B - PUT

C - POST

D - HEAD

Answer : B

Explanation

PUT opearations should be idempotent, means their result will always same no matter how many times these operations are invoked.

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

Answer : C

Explanation

JAX-RS stands for JAVA API for RESTful Web Services.

Q 8 - Which of the following annotation of JAX RS API states the HTTP Request type?

A - @DELETE

B - @HEAD

C - @Produces

D - @Consumes

Answer : D

Explanation

@Consumes − States the HTTP Request type, for example application/x-www-form-urlencoded to accept form data in HTTP body during POST request.

Q 9 - REST is web standards based architecture and uses HTTP Protocol for data communication.

A - false

B - true

Answer : B

Explanation

REST is web standards based architecture and uses HTTP Protocol for data communication.

Q 10 - PUT opearations should be readonly.

A - true

B - false

Answer : B

Explanation

PUT opearations should be idempotent.

restful_questions_answers.htm
Advertisements