- 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 not a valid HTTP methods used in RESTful web services?
Answer : C
Explanation
DATE is not a HTTP Verb and is not a valid HTTP methods used in RESTful web services.
Q 2 - Which of the following component of HTTP response indicates HTTP version?
Answer : B
Explanation
HTTP Version − Indicate HTTP version, for example HTTP v1.1 .
Q 3 - Which of the following is correct about statelessness in context of RESTful web service?
A - As per REST architecture, a RESTful web service should not keep a client state on server.
Answer : C
Explanation
Both of the above options are correct.
Q 4 - Which of the following HTTP method should be used to create/update resource using RESTful web service?
Answer : C
Explanation
POST opearations should be used to create/update resource using 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 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 Cookie?
Answer : A
Explanation
@CookieParam − Binds the parameter passed to method to a Cookie.
Q 9 - A web service is a collection of open protocols and standards used for exchanging data between applications or systems.
Answer : A
Explanation
A web service is a collection of open protocols and standards used for exchanging data between applications or systems.
Q 10 - As HTTP is itself a statelessness protocol, RESTful Web services work seamlessly with HTTP protocol.
Answer : A
Explanation
As HTTP is itself a statelessness protocol, RESTful Web services work seamlessly with HTTP protocol.
To Continue Learning Please Login
Login with Google