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 - OPTIONS

B - DELETE

C - DATE

D - POST

Answer : C

Explanation

DATE 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 request is used to indicate HTTP version?

A - VERB

B - URI

C - HTTP Version

D - Request Header

Answer : C

Explanation

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

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 6 - Which of the following HTTP Status code means NOT FOUND, states that method is not available?

A - 400

B - 401

C - 404

D - 409

Answer : C

Explanation

HTTP Status Code 404 means NOT FOUND, states that method is not available.

Answer : C

Explanation

JAX-RS stands for JAVA API for RESTful Web Services.

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 - REST is web standards based architecture and uses HTTP Protocol for data communication.

A - false

B - true

Answer : B

Explanation

REST is web standards based architecture and uses HTTP Protocol for data communication.

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