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 : D

Explanation

Web services based on REST Architecture are known as RESTful web services. These web services use HTTP methods to implement the concept of REST architecture. A RESTful web service usually defines a URI, Uniform Resource Identifier a service, provides resource representation such as JSON and set of HTTP Methods.

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.

Answer : C

Explanation

Addressing refers to locating a resource or multiple resources lying on the server. It is analogous to locate a postal address of a person.

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

A - Public

B - Private

C - no-cache/no-store

D - max-age

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 annotation of JAX RS API is used to annotate a method to get the relative path of the resource class/method?

A - @Path

B - @GET

C - @PUT

D - @POST

Answer : A

Explanation

@Path - Relative path of the resource class/method.

Q 8 - Which of the following annotation of JAX RS API is used to get status of method availability?

A - @DELETE

B - @HEAD

C - @Produces

D - @Consumes

Answer : B

Explanation

@HEAD − HTTP HEAD request, used to get status of method availability.

Q 9 - In REST architecture, a REST Server simply provides access to resources and REST client accesses and presents the resources.

A - false

B - true

Answer : B

Explanation

In REST architecture, a REST Server simply provides access to resources and REST client accesses and presents the resources.

Q 10 - PUT opearations should be readonly.

A - true

B - false

Answer : B

Explanation

PUT opearations should be idempotent.

restful_questions_answers.htm
Advertisements