- 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 is correct about RESTful web services?
A - Web services based on REST Architecture are known as RESTful web services.
B - These web services use HTTP methods to implement the concept of REST architecture.
Answer : D
Explanation
Web services based on REST Architecture are known as RESTful web services. These web services use HTTP methods to implement the concept of REST architecture. A RESTful web service usually defines a URI, Uniform Resource Identifier a service, provides resource representation such as JSON and set of HTTP Methods.
Q 2 - Which of the following protocol is used by RESTful web services as a medium of communication between client and server?
Answer : A
Explanation
RESTful web services make use of HTTP protocol as a medium of communication between client and server.
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 is true about caching in RESTful web service?
Answer : C
Explanation
Both of the above options are correct.
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 OK, shows success?
Answer : A
Explanation
HTTP Status Code 200 means OK, shows success.
Q 7 - Which of the following annotation of JAX RS API is used to annotate a method to get the relative path of the resource class/method?
Answer : A
Explanation
@Path - Relative path of the resource class/method.
Q 8 - Which of the following annotation of JAX RS API is used to get status of method availability?
Answer : B
Explanation
@HEAD − HTTP HEAD request, used to get status of method availability.
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 : B
Explanation
PUT opearations should be idempotent.
To Continue Learning Please Login
Login with Google