- RESTful - Home
- RESTful - Introduction
- RESTful - Environment Setup
- RESTful - First Application
- RESTful - Resources
- RESTful - Messages
- RESTful - Addressing
- RESTful - Methods
- RESTful - Statelessness
- RESTful - Caching
- RESTful - Security
- RESTful - Java (JAX-RS)
- RESTful Useful Resources
- RESTful - Questions and Answers
- RESTful - Quick Guide
- RESTful - Useful Resources
- RESTful - Discussion
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.
Q 1 - What REST stands for?
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.?
Answer : A
Explanation
Verb − Indicates HTTP methods such as GET, POST, DELETE, PUT etc.
Q 3 - Which of the following is correct about URI in RESTful web services?
A - Each resource in REST architecture is identified by its URI.
B - Purpose of an URI is to locate a resource(s) on the server hosting the web service.
Answer : C
Explanation
Each resource in REST architecture is identified by its URI. Purpose of an URI is to locate a resource(s) on the server hosting the web service.
Q 4 - Which of the following header of HTTP response, provides the date and time of the resource when it was created?
Answer : A
Explanation
Date header provides the date and time of the resource when it was created.
Q 5 - Which of the following directive of Cache Control Header of HTTP response indicates that resource is cachable by any component?
Answer : A
Explanation
Public directive indicates that resource is cachable by any component.
Q 6 - Which of the following HTTP Status code means NO CONTENT, when response body is empty for example, a DELETE request?
Answer : C
Explanation
HTTP Status Code 204 means NO CONTENT, when response body is empty for example, a DELETE request.
Q 7 - Which of the following is correct about JAX-RS?
Answer : C
Explanation
Both of the above options are correct.
Q 8 - Which of the following annotation of JAX RS API binds the parameter passed to method to a HTTP matrix parameter in path?
Answer : C
Explanation
@MatrixParam − Binds the parameter passed to method to a HTTP matrix parameter in path.
Q 9 - In REST architecture, a REST Server simply provides access to resources and REST client accesses and presents the resources.
Answer : B
Explanation
In REST architecture, a REST Server simply provides access to resources and REST client accesses and presents the resources.
Answer : B
Explanation
PUT opearations should be idempotent.