
- 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 is correct about messaging in RESTful web services?
B - These messages contain message data and metadata i.e. information about message itself.
Answer : C
Explanation
A client sends a message in form of a HTTP Request and server responds in form of a HTTP Response. This technique is termed as Messaging. These messages contain message data and metadata i.e. information about message itself.
Q 3 - Which of the following is a best practice to create a standard URI for a web service?
Answer : D
Explanation
All of the above options are correct.
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 header of HTTP response provides control over caching?
Answer : C
Explanation
Cache-Control is the primary header to control caching.
Q 6 - Which of the following HTTP Status code means NOT FOUND, states that method is not available?
Answer : C
Explanation
HTTP Status Code 404 means NOT FOUND, states that method is not available.
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 states the HTTP Response generated by web service?
Answer : C
Explanation
@Produces − States the HTTP Response generated by web service, for example APPLICATION/XML, TEXT/HTML, APPLICATION/JSON etc.
Q 9 - RESTful web services make use of FTP protocol as a medium of communication between client and server.
Answer : B
Explanation
RESTful web services make use of HTTP protocol as a medium of communication between client and server.
Answer : B
Explanation
Purpose of an URI is to locate a resource(s) on the server hosting the web service.