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

Explanation

REST uses various representations to represent a resource where text, JSON, XML. XML and JSON are the most popular representations 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.

Q 4 - Which of the following HTTP method should be used to get status of method availability in RESTful web service?

A - GET

B - HEAD

C - PUT

D - OPTIONS

Answer : B

Explanation

HEAD opearations should be used to get status of method availability in RESTful web service.

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 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 - 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 - PUT opearations should be readonly.

A - true

B - false

Answer : B

Explanation

PUT opearations should be idempotent.


restful_questions_answers.htm

Advertisements