![RESTful Tutorial](/restful/images/restful-mini-logo.jpg)
- 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.
![Questions and Answers](/images/questions_and_answers.png)
Q 1 - Which of the following is correct about resource representation in REST?
A - REST uses various representations to represent a resource where text, JSON, XML.
B - XML and JSON are the most popular representations of resources.
Answer : C
Explanation
REST uses various representations to represent a resource where text, JSON, XML. XML and JSON are the most popular representations of resources.
Q 2 - Which of the following component of HTTP request is used to identify the resource on server?
Answer : B
Explanation
URI − Uniform Resource Identifier (URI) to identify the resource on server.
Q 3 - Which of the following is a best practice to create a standard URI for a web service?
Answer : C
Explanation
Both of the above options are correct.
Q 4 - Which of the following HTTP method should be read only in nature?
Answer : A
Explanation
GET opearations should be read only.
Q 5 - Which of the following directive of Cache Control Header of HTTP response provides indication to server to revalidate resource if max-age has passed?
Answer : A
Explanation
must-revalidate directive provides indication to server to revalidate resource if max-age has passed.
Q 6 - Which of the following HTTP Status code means CREATED, when a resource is successful created using POST or PUT request?
Answer : B
Explanation
HTTP Status Code 201 means CREATED, when a resource is successful created using POST or PUT request.
Q 7 - Which of the following is correct about JAX-RS?
B - It also provides supports for creating clients for RESTful web services.
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 header?
Answer : D
Explanation
@HeaderParam − Binds the parameter passed to method to a HTTP header.
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 : A
Explanation
Web services can treat each method request independently.
To Continue Learning Please Login