- 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 correct about addressing in RESTful web services?
A - Addressing refers to locating a resource or multiple resources lying on the server.
Answer : C
Explanation
Addressing refers to locating a resource or multiple resources lying on the server. It is analogous to locate a postal address of a person.
Q 4 - Which of the following HTTP method should be used to get list the supported operations in RESTful web service?
Answer : D
Explanation
OPTIONS opearations should be used to get list the supported operations in RESTful web service.
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 NOT MODIFIED, used to reduce network bandwidth usage in case of conditional GET requests?
Answer : D
Explanation
HTTP Status Code 304 means NOT MODIFIED, used to reduce network bandwidth usage in case of conditional GET requests.
Q 7 - Which of the following HTTP Status code means CONFLICT, states conflict situation while executing the method for example, adding duplicate entry?
Answer : D
Explanation
HTTP Status Code 409 means CONFLICT, states conflict situation while executing the method for example, adding duplicate entry.
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 - A RESTful web service usually defines a URI, Uniform Resource Identifier a service, provides resource representation such as JSON and set of HTTP Methods.
Answer : B
Explanation
A RESTful web service usually defines a URI, Uniform Resource Identifier a service, provides resource representation such as JSON and set of HTTP Methods.
Answer : A
Explanation
Web services can treat each method request independently.