Our experts have gathered these RESTful Services MCQs through research, and we hope that you will be able to see how much knowledge base you have for the subject of RESTful Services by answering these 50+ multiple-choice questions.
Get started now by scrolling down!
A. POST /api/foos
B. PUT /api/foos
C. DELETE /api/foos
D. GET /api/foos
A. (All of these)
B. a file on the disk
C. a method on a class
D. an entity or resource
A. (none of these are correct)
B. Make individual resources available at unique URIs
C. Make individual reources available at the same URI
A. POST
B. DELETE
C. PUT
D. GET
A. PUT /api/foos/123
B. DELETE /api/foos/123
C. POST /api/foos/123
D. GET /api/foos/123
A. DELETE /api/foos/123
B. GET /api/foos/123
C. PUT /api/foos/123
D. POST /api/foos/123
A. FIND
B. POST
C. PUT
D. GET
A. DELETE /users/1
B. GET /users/delete?id=1
C. PUT /users/delete/1
D. POST /users/1
A. Multiple clients can safely access Restful resources concurrently
B. XML protocol will be used to access clients
C. SOAP service will be implemented
D. Synchronization will be made to the Restful resource request
A. Peer to peer communications
B. Encrypted communications
C. Client-server communications
D. Raw socket data transfer communications
A. To create a resource on the server, use EXECUTE
B. To create a resource on the server, use POST
C. To create a resource on the server, use CREATE
D. To create a resource on the server, use ADD
A. GET
B. PUT
C. POST
D. HEAD
A. True
B. False
A. PUT /api/foos
B. POST /api/foos
C. DELETE /api/foos
D. GET /api/foos
A. Improves performance by reducing the requests for duplicate resources
B. Includes links to subordinate resources to keep them connected
C. Resources organized by date for using hierarchical syntax
D. Avoids query strings
A. Identifier of the resource and Action required
B. Well managed cache control
C. Code on demand
D. Format of the presentation
A. DELETE /api/foos/123
B. POST /api/foos/123
C. GET /api/foos/123
D. PUT /api/foos/123
A. No transfer of XML
B. Use HTTP methods explicitly
C. Inconsistent with protocol definition
D. Caters to any client in one language
A. Any format
B. JSON
C. XML
D. Haml
A. True
B. False
A. REST uses HTTP protocol for producing or consuming web services while SOAP uses XML
B. SOAP is transport protocol specific whereas REST is transport protocol neutral
C. SOAP can be cached and REST cannot be cached
D. SOAP is more lightweight as compared to REST
A. Proxies
B. Firewalls
C. Gateways
D. Viruses
A. Extension in URI. E.g. /users.json
B. HTTP Content-Type header
C. A string containing MIME-Type in the HTTP body
D. Inference from the HTTP method used
A. Web Services with focus on system resources and transfer of state of resource over http by a wide range of clients written in different languages
B. An application protocol for distributed, collaborative, hypermedia information systems.
C. Structured text that uses hyperlinks between nodes containing text to exchange or transfer hypertext
D. A protocol specification for exchanging structured information in the implementation of Web Services in computer networks
A. False
B. True
A. Return resource data
B. Increment an internal counter
C. Update a resource entry
D. Log the request data
A. HTTP Method
B. Verb on URI
C. Query string parameters
D. Verb on request body
A. a framework
B. a standard
C. (None of these)
D. an architectural style
A. It depends on entitlement per Data Protection Act
B. Since server is stateless, client has to provide all information to make request
C. Encryption and Decryption technology addresses the need
D. Users apply for permission to enable them to login
A. Modifies components to meet changing needs while an application is running
B. Uniform interface separates each client from the server
C. A default page or resource is provided as a response
D. Improves Web service performance as it removes the need to synchronize session data with an external application
A. SOAP is a subset of REST that is stricter
B. REST is a subset of SOAP that is stricter
C. REST is an alternative to SOAP
D. REST is the same as SOAP, except that REST does not specify that the format of interchange is XML
A. (None of these)
B. Stateless
C. Makes use of standard HTTP methods
D. Client-server separation
A. False
B. True
A. /user/id?fields=comments
B. /comments?user={id}
C. /comments/user/{id}
D. /users/{id}/comments
A. GET, POST, PUT and DELETE
B. HEAD, GET, OPTIONS and TRACE
C. HEAD, GET, PUT and OPTIONS
D. HEAD, POST, GET and PUT
A. Master Data
B. Cache Responses
C. Stateless Principle
D. Client-server
A. Service Oriented Architecture
B. Enterprise Architecture
C. Software System Architecture
D. Resource Oriented Architecture
A. Replace the entire posts collection for the user 123.
B. Fail to do anything
C. Add a new post
A. True
B. False
A. False
B. True
A. Configuration
B. Pattern
C. Connector
D. Architecture
A. Both client and server
B. (None of these)
C. Server
D. Client
A. A link in the response body pointing to the next state
B. There is no way to track states in RESTful applications
C. (None of these)
D. The server should track the state for the client
A. API (Application Programming Interface)
B. HATEOAS (Hypertext As The Engine Of Application State)
C. SOAP (Simple Object Access Protocol)
D. WSS (Web Services Security)
A. Each response should include state of related resources
B. (all of these are correct)
C. Each response should include metadata about the resource, such as when the data is valid until
D. Each response should include links to the other related resources
A. (All of these)
B. Nouns
C. Parameters. E.g. id, page, etc.
D. Verbs
A. 500 Internal Server Error
B. 200 OK
C. 302 Found
D. 405 Method Not Allowed
A. URL
B. Client server
C. Media
D. Cache
A. Resource Negotiation
B. Content Negotiation
C. Media Negotiation
D. Representation Negotiation
A. 406 Not Acceptable
B. 400 Bad Request
C. 200 OK with a resource that describes the error
D. 415 Unsupported Media Type