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

REST stands for REpresentational State Transfer.

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 3 - Which of the following is a best practice to create a standard URI for a web service?

A - Use Plural Noun.

B - Avoid using spaces.

C - Use lowercase letters

D - All of the above.

Answer : D

Explanation

All of the above options are correct.

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 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 6 - Which of the following HTTP Status code means OK, shows success?

A - 200

B - 201

C - 204

D - 304

Answer : A

Explanation

HTTP Status Code 200 means OK, shows success.

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 query parameter in path?

A - @PathParam

B - @QueryParam

C - @MatrixParam

D - @HeaderParam

Answer : B

Explanation

@QueryParam − Binds the parameter passed to method to a query parameter in path.

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 - Web services can treat each method request independently.

A - true

B - false

Answer : A

Explanation

Web services can treat each method request independently.

restful_questions_answers.htm
Advertisements