Web Services MCQs

1) The web site serves HTML documents, and the web service serves _____________.
A) XML documents B) web documents C) web applications D) All of these
Correct Ans: XML documents

2) The _____________ library has a simple and elegant interface that lets you treat URIs as filenames.
A) Rexml B) open-uri C) Net D) eTree
Correct Ans: open-uri

3) A program called _____________ is a capable HTTP client that runs from the Unix or
Windows command line.
A)XMLHttpRequest B)libcurl  C) curl D)XML.Load
Correct Ans: curl

4) RPC-style service based on __________ envelopes.
A) SOAP B) HTTP C) FTP D) 
Correct Ans: SOAP

5) The client stores objects on the S3 service the same way it stores _________.
A)object B) buckets C) key-value pair D) HEAD
Correct Ans: buckets

6) A ______ URI works only for a limited time.
A) signed B) unsigned C) private D) public-read
Correct Ans: signed

7) Addressability is one of the four main features of the ___________.
A)HTTP B)REST C) ROA D) URI
Correct Ans: ROA

8) __________ has a notion of a “working directory” that stays constant over
the course of a session unless you change it.
A) FTP B) HTTP C) REST D) URI
Correct Ans: FTP

9) To fetch or delete a resource, the client just sends a GET or DELETE request to its _______________.
A)bucket B)REST C) URI D) object
Correct Ans: URI

10) _________ is commonly used to create subordinate resources.
A) POST B) GET C) REST D) ROA
Correct Ans: POST

11) A resource for every object exposed through the ___________.
A) service B) application C) data set D) algorithm
Correct Ans: service

12) The _____________ affects not only the natural size of the map in pixels, but which features are shown.
A)map B) scale C) equator D)resources 
Correct Ans: scale

13) _____________ is the problem of tying a request to a user.
A) Authorization B) Privacy C) Authentication D) Trust
Correct Ans: Authentication

14) A ___________ that creates, modifies, or deletes a resource has more failure conditions than one that just retrieves a representation.
A) request B) response C) resource D) representation
Correct Ans: request

15) ________ can use GET and HEAD to retrieve representations of built-in places, their own places (whether public or private), and public places created by others.
A) Clients B) server C) request D) response
Correct Ans: Clients

16) The _________ in users’ bookmarks are the most interesting part of the data set.
A) URIs B)ROAs C) Data Sets D) HTTPs
Correct Ans: URIs

17) ____________ Fetch the n most recent posts by the authenticated user.
A) posts/get B)posts/dates C) posts/recent D) Posts/all
Correct Ans: posts/recent

18) ____________ Fetch the list of users who have bookmarked a particular URI.
A) /url/{URI-MD5} B)/recent C) /tag/{tag-name} D) /{username}/{tag}
Correct Ans: /url/{URI-MD5}

19) _____________ is rooted at /users/{username}/tags.
A) Bookmarks Controller B) User Tags Controller User Controller D) Calendar Controller
Correct ANs: User Tags Controller

20) A web service is ______________ if it exposes the interesting aspects of its data set through resources.
A) addressable B) statelessness C) connectedness D) uniform interface
Correct Ans: addressable

Comments