- RESTful Tutorial
- 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 - Which of the following depicts best practice, Completeness for resource representation in REST?
Answer : B
Explanation
Completeness: Format should be able to represent a resource completely. For example, a resource can contain another resource. Format should be able to represent simple as well as complex structures of resources.
Q 2 - Which of the following depicts best practice, Linkablity for resource representation in REST?
Answer : C
Explanation
Linkablity: A resource can have a linkage to another resource, a format should be able to handles such situations.
Q 3 - Which of the following is correct about statelessness in context of RESTful web service?
A - As per REST architecture, a RESTful web service should not keep a client state on server.
Answer : C
Explanation
Both 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?
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 can set the time limit of caching?
Answer : D
Explanation
max-age directive indicates that the caching is valid up to max-age in seconds. After this, client has to make another request.
Q 6 - Which of the following HTTP Status code means OK, shows success?
Answer : A
Explanation
HTTP Status Code 200 means OK, shows success.
Q 7 - What JAX-RS stands for?
A - Just API for RESTful Web Services.
B - Joint API for RESTful Web Services.
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 value in path?
Answer : A
Explanation
@PathParam − Binds the parameter passed to method to a value in path.
Q 9 - URI of HTTP request indicates HTTP methods to be executed by RESTful Web services.
Answer : A
Explanation
HTTP Verb − Indicates HTTP methods such as GET, POST, DELETE, PUT etc.
Q 10 - As HTTP is itself a statelessness protocol, RESTful Web services work seamlessly with HTTP protocol.
Answer : A
Explanation
As HTTP is itself a statelessness protocol, RESTful Web services work seamlessly with HTTP protocol.