- 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 - What REST stands for?
Answer : B
Explanation
REST stands for REpresentational State Transfer.
Q 2 - Which of the following is correct about messaging in RESTful web services?
B - These messages contain message data and metadata i.e. information about message itself.
Answer : C
Explanation
A client sends a message in form of a HTTP Request and server responds in form of a HTTP Response. This technique is termed as Messaging. These messages contain message data and metadata i.e. information about message itself.
Q 3 - Which of the following is advantage of RESTful web service being stateless?
A - Web services can treat each method request independently.
Answer : D
Explanation
All of the above options are correct.
Q 4 - Which of the following header of HTTP response, provides the date and time of the resource when it was created?
Answer : A
Explanation
Date header provides the date and time of the resource when it was created.
Q 5 - Which of the following header of HTTP response provides control over caching?
Answer : C
Explanation
Cache-Control is the primary header to control caching.
Q 6 - Which of the following HTTP Status code means BAD REQUEST, states that invalid input is provided e.g. validation error, missing data?
Answer : A
Explanation
HTTP Status Code 400 means BAD REQUEST, states that invalid input is provided e.g. validation error, missing data.
Q 7 - Which of the following annotation of JAX RS API is used to annotate a method used to delete resource?
Answer : A
Explanation
@DELETE − HTTP Get request, used to delete resource.
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 - RESTful web services make use of FTP protocol as a medium of communication between client and server.
Answer : B
Explanation
RESTful web services make use of HTTP protocol as a medium of communication between client and server.
Answer : B
Explanation
Purpose of an URI is to locate a resource(s) on the server hosting the web service.
To Continue Learning Please Login
Login with Google