Yahoo Tools and Libraries MCQs

Yahoo Tools and Libraries MCQs

The following Yahoo Tools and Libraries MCQs have been compiled by our experts through research, in order to test your knowledge of the subject of Yahoo Tools and Libraries. We encourage you to answer these 40 multiple-choice questions to assess your proficiency.
Please continue by scrolling down.

1: In JSON, the slashes (/) appearing in a URL string value are escaped with _________.

A.   \\

B.   \/

C.   /\

D.   ..

2: Which of the following query parameters are supported by the Yahoo! Placemaker API?

A.   format

B.   focusWoeid

C.   callback

D.   documentURL

3: Which of the following parameters is used to get output from Yahoo! Web Services in Serialized PHP format?

A.   response=php

B.   output=php

C.   format=php

D.   outputparam=php

4: Which of the following built-in PHP functions are used to handle Serialized PHP text format?

A.   serialize

B.   unserialize

C.   serializable

D.   wddx_deserialize

5: Which of the following are optional Yahoo! BOSS API arguments?

A.   Format

B.   Style

C.   Abstract

D.   Type

6: Which of the following Yahoo! BOSS API arguments is used to remove bold tags around the search result titles?

A.   format

B.   strictlang

C.   view

D.   style

7: Which of the following Yahoo! BOSS API Services is used to display a list of all pages belonging to a domain in the Yahoo! index?

A.   inlink

B.   pagedata

C.   news

D.   image

8: Which of the following statements regarding XML is incorrect?

A.   XML attribute values must be quoted.

B.   XML tags are not case sensitive.

C.   XML is platform independent.

D.   XML is extensible.

9: Which of the following URIs from the Yahoo! Updates API is used to handle updates for a specified user?

A.   http://social.yahooapis.com/v1/user/{guid}/updates/{source}/{suid}

B.   http://social.yahooapis.com/v1/user/{guid}/updates

C.   http://social.yahooapis.com/v1/user/{guid}/updates/connections

10: With regard to the Yahoo! Contact API, which of the following plural fields can be assigned to the Contacts plural field type?

A.   emails

B.   notes

C.   links

11: Which of the following identifiers are provided by the Contact object of the Yahoo! Contact API?

A.   cid

B.   fid

C.   collectionID

D.   suid

12: Which BBAuth response parameter can be used to validate whether the authorization response actually came from Yahoo! login servers?

A.   appdata

B.   token

C.   sig

D.   ts

13: Read the following statements regarding BBAuth Authorization and then choose the appropriate option from the list below.
Statement X: The appid is passed as a REST parameter.
Statement Y: The WSSID is passed as a POST parameter.
Statement Z: The auth cookie is passed as an HTTP Cookie Header.

A.   Statements X and Y are correct and Statement Z is incorrect.

B.   Statements X and Y are incorrect and Statement Z is correct.

C.   Statements X and Z are correct and Statement Y is incorrect.

D.   Statements Y and Z are correct and Statement X is incorrect.

14: Which of the following is an invalid format for using a Yahoo! GeoPlanet API filter?

A.   $and(.q(NewYork),.type(suburb))

B.   $and(.q(NewYork,Miami),.type(suburb))

C.   $and(.q('NewYork,Miami'),.type(suburb))

15: What does the BBAuth Authentication Error Code 1000 signify?

A.   The user token has expired.

B.   The authentication call has been made using HTTP.

C.   The application ID (appid) is invalid.

D.   The user token is invalid.

16: In the Yahoo! Web Services URI, which of the following combinations is used to get the JSON response in parentheses and a user-defined function name containing that response?

A.   output=json&callback=[function_name]

B.   format=json&return=[function_name]

C.   show=json&capture=[function_name]

D.   response=json&function=[function_name]

17: Which of the following is a common feature in both BBAuth and OAuth authorization methods?

A.   Token-based authorization

B.   Support for multiple providers

C.   Support for Desktop applications

18: What do the curly brackets {} signify in JSON format?

A.   Objects

B.   Object members

C.   Arrays

D.   Values

19: Which of the following responses are supported by the Yahoo!BOSS API?

A.   XML

B.   YML

C.   Serialized PHP

D.   JSON

20: Which of the following is the root element of the XML response obtained from the Yahoo! Placemaker API /document resource?

A.   contentlocation

B.   processingTime

C.   placeDetails

D.   referenceList

21: Which of the following BBAuth error codes is returned when the length of the appdata exceeds 300 bytes?

A.   2001

B.   2002

C.   2003

D.   2004

E.   2005

22: Which of the following Search Services are provided by Yahoo! BOSS API?

A.   News Search

B.   Music Search

C.   Image Search

D.   Travel Search

23: Which of the following response formats are supported by the Yahoo! GeoPlanet API?

A.   XML

B.   JSON

C.   GeoJSON

D.   Serialized PHP

24: Read the following statements regarding JSON and then choose the appropriate option from the list below.
Statement X: In JSON, an object is an ordered set of name/value pairs.
Statement Y: IN JSON, an array is an ordered collection of values.

A.   Statement X is correct and Statement Y is incorrect.

B.   Statement Y is correct and Statement X is incorrect.

C.   Both statements are correct.

D.   Both statements are incorrect.

25: When performing a Yahoo! BOSS API image search, which response XML field gives the information regarding the URL of the image itself?

A.   thumbnail_url

B.   url

C.   refererclickurl

D.   refererurl

26: What is the XML schema data type of the count element in a Yahoo! Contact API object?

A.   anyURI

B.   string

C.   dateTime

D.   Contact Object

27: When using Yahoo! Placemaker API, which of the following query parameters is used to define the results return format?

A.   documentType

B.   outputType

C.   focusWoeid

D.   autoDisambiguate

28: Read the following statements regarding Yahoo! Updates API and then choose the appropriate option from the list below.
Statement X: For HTTP GET Method, Read/Write permissions are required for Yahoo! Updates.
Statement Y: For HTTP PUT Method, Read/Write permissions are required for Yahoo! Updates.

A.   Statement X is correct and Statement Y is incorrect.

B.   Statement Y is correct and Statement X is incorrect.

C.   Both statements are correct.

D.   Both statements are incorrect.

29: The only Yahoo! GeoPlanet API filter supported by the /placetypes collection is _______________.

A.   .q

B.   .type

C.   $and

30: Read the following statements regarding OAuth and then choose the appropriate option from the list below.
Statement X: OAuth unreserved characters are not encoded.
Statement Y: OAuth parameter names and values are not case sensitive.

A.   Statement X is correct and Statement Y is incorrect.

B.   Statement X is incorrect and Statement Y is correct.

C.   Both statements are correct.

D.   Both statements are incorrect.

A.   view=language

B.   type=html

C.   view=keyterms

D.   abstract=long

32: Which of the following URLs is used to get User Authorization in the OAuth Authorization process?

A.   https://api.login.yahoo.com/oauth/v2/get_request_token

B.   https://api.login.yahoo.com/oauth/v2/request_auth

C.   https://api.login.yahoo.com/WSLogin/V1/wslogin

D.   https://api.login.yahoo.com/oauth/v2/get_token

33: Which of the following are examples of Yahoo! GeoPlanet API collections?

A.   place

B.   children

C.   ancestors

34: Which of the following elements are contained under the channel element of the RSS response of the Yahoo! Placemaker API?

A.   title

B.   contentlocation

C.   rss

D.   link

35: Is the following statement true or false?
The JavaScript eval() function performs a sanity check while compiling JSON output text.

A.   True

B.   False

36: Which of the following different types of OAuth Request URLs is used to obtain user authorization for consumer access?

A.   Request Token

B.   User Authorization

C.   Access Token

37: Which of the following query parameters is not supported by the Yahoo! GeoPlanet API?

A.   appid

B.   select

C.   count

D.   callback

38: Regarding the Yahoo! Updates API, which of the following HTTP request headers is mandatory?

A.   Authorization

B.   Accept-Encoding

C.   Host

D.   Accept-Language

39: Which of the following transform query argument filters from the Yahoo! Updates API is used to get the updates belonging to each of the specified transforms?

A.   all

B.   intersection

C.   limit

D.   union 

40: Which of the following BBAuth login parameters contains a hexadecimal md5 hash of a particular relative URL?

A.   appdata

B.   ts

C.   send_userhash

D.   sig 

41: Which of the following is not a valid value for the age argument in a Yahoo! BOSS API News Search query?

A.   age=25d

B.   age=2w-30d

C.   age=2000d

D.   age=6d-10d 

42: Which of the following XML attributes are correct?

A.   <employee name=Sam>Engineer</employee>

B.   <employee name='Sam'>Engineer</employee>

C.   <employee name='Sam "Shelton" Ziegler' />

D.   <employee name="Sam">Engineer</employee>

43: When using the Yahoo! Placemaker API, which of the following parameters is ignored when the documentContent parameter is provided in the query string of the URI?

A.   documentType

B.   inputLanguage

C.   documentTitle

D.   documentURL 

44: Which of the following logic operators are used when working with the Yahoo! Updates API?

A.   ne

B.   suid

C.   or

D.   contains

E.   source 

45: Which of the following Yahoo! BOSS API response fields gives the number of total documents matching the search terms, including duplicate results?

A.   totalhits

B.   deephits

C.   count