- 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 depicts best practice, Understandability for resource representation in REST?
Answer : A
Explanation
Understandability: Both Server and Client should be able to understand and utilize the representation format of the resource.
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 HTTP method should be idempotent in nature?
Answer : B
Explanation
PUT opearations should be idempotent, means their result will always same no matter how many times these operations are invoked.
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 - Public 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 is a best practice for designing a secure RESTful web service?
Answer : C
Explanation
Both of the above options are correct.
Q 7 - What JAX-RS stands for?
A - Just API for RESTful Web Services.
B - Joint API for RESTful Web Services.
Answer : C
Explanation
JAX-RS stands for JAVA API for RESTful Web Services.
Q 8 - Which of the following annotation of JAX RS API states the HTTP Request type?
Answer : D
Explanation
@Consumes − States the HTTP Request type, for example application/x-www-form-urlencoded to accept form data in HTTP body during POST request.
Q 9 - REST is web standards based architecture and uses HTTP Protocol for data communication.
Answer : B
Explanation
REST is web standards based architecture and uses HTTP Protocol for data communication.
Answer : B
Explanation
PUT opearations should be idempotent.
To Continue Learning Please Login
Login with Google