- 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 is true about REST?
A - REST is web standards based architecture and uses HTTP Protocol for data communication.
Answer : D
Explanation
All of the above options are correct.
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 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 HTTP method should be used to fetch resource using RESTful web service?
Answer : A
Explanation
GET opearations should be used to fetch resource using RESTful web service.
Q 5 - Which of the following directive of Cache Control Header of HTTP response indicates that resource is cachable by only client and server?
Answer : B
Explanation
Private directive indicates that resource is cachable by only client and server, no intermediary can cache the resource.
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 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 assigns a default value to a parameter passed to method?
Answer : C
Explanation
@DefaultValue − Assigns a default value to a parameter passed to method.
Q 9 - Request Header - Contains metadata for the HTTP Request message as key-value pairs.
Answer : B
Explanation
Request Header − Contains metadata for the HTTP Request message as key-value pairs.
Answer : B
Explanation
Status/Response Code − Indicate Server status for the requested resource.