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

Explanation

REST stands for REpresentational State Transfer.

Answer : C

Explanation

A client sends a message in form of a HTTP Request and server responds in form of a HTTP Response. This technique is termed as Messaging. These messages contain message data and metadata i.e. information about message itself.

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 header of HTTP response provides control over caching?

A - Date

B - Last Modified

C - Cache-Control

D - Expires

Answer : C

Explanation

Cache-Control is the primary header to control caching.

Q 6 - Which of the following HTTP Status code means BAD REQUEST, states that invalid input is provided e.g. validation error, missing data?

A - 400

B - 401

C - 404

D - 409

Answer : A

Explanation

HTTP Status Code 400 means BAD REQUEST, states that invalid input is provided e.g. validation error, missing data.

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

A - @DELETE

B - @HEAD

C - @Produces

D - @Consumes

Answer : A

Explanation

@DELETE − HTTP Get request, used to delete resource.

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 - RESTful web services make use of FTP protocol as a medium of communication between client and server.

A - true

B - false

Answer : B

Explanation

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

Q 10 - Purpose of an URI is to do the DNS lookup.

A - true

B - false

Answer : B

Explanation

Purpose of an URI is to locate a resource(s) on the server hosting the web service.

restful_questions_answers.htm
Advertisements