- 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 web services?
Answer : C
Explanation
A web service is a collection of open protocols and standards used for exchanging data between applications or systems. Software applications written in various programming languages and running on various platforms can use web services to exchange data over computer networks like the Internet in a manner similar to inter-process communication on a single computer.
Q 2 - Which of the following component of HTTP request is used to indicate HTTP version?
Answer : C
Explanation
HTTP Version − Indicate HTTP version, for example HTTP v1.1 .
Q 3 - Which of the following component of HTTP response contains response message content or Resource representation?
Answer : D
Explanation
Response Body − Response message content or Resource representation.
Q 4 - Which of the following HTTP method should be used to get status of method availability in RESTful web service?
Answer : B
Explanation
HEAD opearations should be used to get status of method availability in RESTful web service.
Q 5 - Which of the following is a best practice for caching in RESTful web service?
B - Never keep expiry date too high.
Answer : D
Explanation
All of the above options are correct.
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 - 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 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 - RESTful web services use HTTP methods to implement the concept of REST architecture.
Answer : A
Explanation
RESTful web services use HTTP methods to implement the concept of REST architecture.
Answer : B
Explanation
POST operation can cause different result.