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

Explanation

Completeness: Format should be able to represent a resource completely. For example, a resource can contain another resource. Format should be able to represent simple as well as complex structures of resources.

Q 2 - Which of the following component of HTTP request indicates HTTP methods such as GET, POST, DELETE, PUT etc.?

A - VERB

B - URI

C - HTTP Version

D - Request Header

Answer : A

Explanation

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

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 4 - Which of the following header of HTTP response, provides the date and time of the resource when it was created?

A - Date

B - Last Modified

C - Cache-Control

D - Expires

Answer : A

Explanation

Date header provides the date and time of the resource when it was created.

Q 5 - Which of the following directive of Cache Control Header of HTTP response provides indication to server to revalidate resource if max-age has passed?

A - must-revalidate

B - Private

C - no-cache/no-store

D - max-age

Answer : A

Explanation

must-revalidate directive provides indication to server to revalidate resource if max-age has passed.

Q 7 - Which of the following annotation of JAX RS API is used to annotate a method used to create resource?

A - @Path

B - @GET

C - @PUT

D - @POST

Answer : C

Explanation

@PUT − HTTP Get request, used to create resource.

Q 8 - Which of the following annotation of JAX RS API binds the parameter passed to method to a form value?

A - @CookieParam

B - @FormParam

C - @DefaultValue

D - @Context

Answer : B

Explanation

@FormParam − Binds the parameter passed to method to a form value.

Q 9 - A web service is a collection of open protocols and standards used for exchanging data between applications or systems.

A - true

B - false

Answer : A

Explanation

A web service is a collection of open protocols and standards used for exchanging data between applications or systems.

Q 10 - GET opearations should be readonly.

A - true

B - false

Answer : A

Explanation

GET opearations should be readonly.


restful_questions_answers.htm

Advertisements