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

Q 1 - Which of the following is not a valid HTTP methods used in RESTful web services?

A - GET

B - PUT

C - TIME

D - POST

Answer : C

Explanation

TIME is not a HTTP Verb and is not a valid HTTP methods used in RESTful web services.

Q 2 - Which of the following component of HTTP response indicates HTTP version?

A - Status/Response Code

B - HTTP Version

C - Response Header

D - Response Body

Answer : B

Explanation

HTTP Version − Indicate HTTP version, for example HTTP v1.1 .

Answer : C

Explanation

URI stands for Uniform Resource Identifier. Each resource in REST architecture is identified by its URI.

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 directive of Cache Control Header of HTTP response indicates that resource is not cachable?

A - Public

B - Private

C - no-cache/no-store

D - max-age

Answer : C

Explanation

no-cache/no-store directive indicates that resource is not cachable.

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 - Request Header - Contains metadata for the HTTP Request message as key-value pairs.

A - false

B - true

Answer : B

Explanation

Request Header − Contains metadata for the HTTP Request message as key-value pairs.

Q 10 - Response Header - Contains metadata for the HTTP Response message as key-value pairs.

A - true

B - false

Answer : A

Explanation

Response Header − Contains metadata for the HTTP Response message as key-value pairs.

restful_questions_answers.htm

Useful Video Courses


Video

Master Java Web Services: Restful API

71 Lectures 10 hours

Chaand Sheikh

Video

Develop RESTful Java Web Services using JAX-RS and Jersey

27 Lectures 2 hours

Vinod Kumar Kayartaya

Video

Full Stack Java developer - Java + JSP + Restful WS + Spring

Best Seller

517 Lectures 57 hours

Chaand Sheikh

Video

Laravel RESTful APIs - Admin App, Docker, Open API(Swagger)

35 Lectures 3.5 hours

Antonio Papa

Advertisements