MCQs > IT & Programming > OpenSocial MCQs > Basic OpenSocial MCQs

Basic OpenSocial MCQ

1.

Which of the following type conventions are used in OpenSocial Gadgets API?

Answer

Correct Answer: Array
string
Map.

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

2.
Some of the classes and methods in the 'gadget.*' namespace are feature-specific. In which of the following tags must the'' element be included in order to use them?

 

Answer

Correct Answer: ModulePrefs>

Note: This Question is unanswered, help us to find answer for this one

3.
Which of the following are authorizations of API  supported Gadgets in OpenSocial API (v0.7)?

Answer

Correct Answer: gadgets.io.AuthorizationType.AUTHENTICATED
gadgets.io.AuthorizationType.SIGNED
gadgets.io.AuthorizationType.NONE

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

4.

You have an OpenSocial API. You want to show the same OpenSocial API content in both 'profile' view and 'canvas' view. Which of the following is the correct code?

Answer

Correct Answer: Content type="html" view="profile,canvas">

Note: This Question is unanswered, help us to find answer for this one

5.

You want to build an OpenSocial API, and you want to configure the API to be run on version 0.7? Which of the following statements is the correct configuration?

Answer

Correct Answer: Require feature="OpenSocial-0.7" />

Note: This Question is unanswered, help us to find answer for this one

6.

Which of the following elements are present under tag?

Answer

Correct Answer: Require>
Optional>
Locale>

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

7.

What is the purpose of the "gadgets.util.escapeString" function?

Answer

Correct Answer: It is used to HTML encode the string

Note: This Question is unanswered, help us to find answer for this one

8.

Suppose there is an OpenSocial APT named 'Messages' which is integrated with the Google App Engine. Through which of the following API namespaces will OpenSocial app make calls and get data from API hosted on Google App Engine?

Answer

Correct Answer: gadgets.io.makeRequest

Note: This Question is unanswered, help us to find answer for this one

9.

Which of the following user general profile fields cannot be accessed in orkut applications for OpenSocial (v0.7)?

Answer

Correct Answer: Birthday
Zipcode
Birthyear

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

10.

IN OpenSocial, errors are returned through 'OpenSocial.ResponseItem.Error' namespace. Which of the following is not an error code?

Answer

Correct Answer: NOT_FOUND

Note: This Question is unanswered, help us to find answer for this one

11.

Persistence API provides a storage mechanism to save and load data. In which form is the data stored?

Answer

Correct Answer: It is stored in the form of key/value pairs

Note: This Question is unanswered, help us to find answer for this one

12.

Which of the following languages are used for integrating OpenSocial API with Google App Engine?

Answer

Correct Answer: Javascript
HTML
Python

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

13.

What do you mean by "Activity" in OpenSocial API (v0.7)?

Answer

Correct Answer: Action performed by a user

Note: This Question is unanswered, help us to find answer for this one

14.

Which of the following request is sent to the apiserver when an OpenSocial API wants to call the Google App Engine server for data,?

Answer

Correct Answer: get_data
get_data

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

15.

You have made a function named 'getfriends()', which will get the list of friends once the OpenSocial API is loaded. Which of the following event handler will call this function after the API has been loaded?

Answer

Correct Answer: gadgets.util.registerOnLoadHandler(getfriends);

Note: This Question is unanswered, help us to find answer for this one

16.

In the process of integrating OpenSocial API with Google App Engine, you do not need to maintain any servers.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

17.

In OpenSocial API, the "gadgets.Prefs" namespace enables the end user to _____.

Answer

Correct Answer: set preferences of the OpenSocial API
set OpenSocial API module dimensions
handle messages in API

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

18.

Which of the following 'DataRequest' methods will be used in order to read, write and clear data from Persistence API?

Answer

Correct Answer: newFetchPersonAppDataRequest(idSpec, keys)
newUpdatePersonAppDataRequest(id, key, value)

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

19.

You have a collection of multiple objects and you want to retrieve the size of that collection. Which of the following methods will you use in order to calculate the collection size?

Answer

Correct Answer: size()

Note: This Question is unanswered, help us to find answer for this one

20.

Which of the following Content Type Requests are handled by the gadgets.io.makeRequest(url, callback, opt_params) method?

Answer

Correct Answer: Text Requests
DOM Requests
JSON Requests
FEED Requests

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

21.

What is the function of the "gadgets.pubsub" namespace in OpenSocial API (v0.7)?

Answer

Correct Answer: It is used to publish messages to feed channels
It is used to subscribe gadgets to a messaging channel
It is used to unsubscribe gadgets from a messaging channel

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

22.

In OpenSocial API, "OpenSocial.IdSpec.Field" namespace is used _____.

Answer

Correct Answer: to get the groupid of the user
to get the userid of the user
to get the network distance between two users

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

23.

Which statements are incorrect with regard to the implementation of OpenSocial (v0.7)?

Answer

Correct Answer: To implement OpenSocial, you require your own web hosting
To configure OpenSocial, database is required
OpenSocial is a product which requires licensing

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

24.

Which of the following are the supported keys for the Person.getField() method.?

Answer

Correct Answer: ABOUT_ME
NICKNAME
TURN_OFFS

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

25.

What does section specify in OpenSocial (v0.7)?

Answer

Correct Answer: Characteristics of the gadget

Note: This Question is unanswered, help us to find answer for this one

26.

If you want to handle the error of maximum usage of "Quotas" in OpenSocial (v0.7), which object field of the class "OpenSocial.ResponseItem.Error" will be used to handle the error?

Answer

Correct Answer: FORBIDDEN
FORBIDDEN

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

27.

What will happen if "&bpc=1" is appended to an orkut application canvas page url as querystring?

Answer

Correct Answer: It will load a fresh copy of the page

Note: This Question is unanswered, help us to find answer for this one

28.

Arrange in proper sequence how an application gets live in Orkut using OpenSocial (v0.7).(Starting with the 1st) 1. Submitting the application to orkut 2. Registration at sandbox 3. Adding the application in sandbox 4. Creating an account in orkut

Answer

Correct Answer: 4,2,3,1

Note: This Question is unanswered, help us to find answer for this one

29.

With the help of the 'gadgets.io.makeRequest()'  function in OpenSocial API, you can _____.

Answer

Correct Answer: get a user's friend lList
add a user to the friend list.

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

30.

What kind of data can be saved and retrieved in OpenSocial API (v0.7)?

Answer

Correct Answer: per-user
per-application

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

31.

Which of the following are the valid ContentTypes under 'gadgets.io.ContentType' namespace?

Answer

Correct Answer: DOM
FEED
JSON

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

32.

In RESTful Data API, the server interactions are handled by _______ protocol and the Authentication is handled by _____.

Answer

Correct Answer: AtomPub, OAuth

Note: This Question is unanswered, help us to find answer for this one

33.

What is the functionality of the "getdomain" method in the Environment class in OpenSocial API (v0.7)?

Answer

Correct Answer: It gives the current site on which the application is running

Note: This Question is unanswered, help us to find answer for this one

34.

Suppose you have an OpenSocial API with the name "message.xml". You have integrated the API with the Google App Engine. The Google App Engine has the configuration file named "app.yaml". Now you want to handle the request generated by the OpenSocial API to the Google APP Engine? Which file will you configure in order to handle the request?

Answer

Correct Answer: app.yaml

Note: This Question is unanswered, help us to find answer for this one

35.

Which of the following methods are defined under "OpenSocial.Permission" namespace?

Answer

Correct Answer: OpenSocial.hasPermission()
OpenSocial.requestPermission()

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

36.

Which of the following are the constant identifiers in OpenSocial API?

Answer

Correct Answer: OWNER
VIEWER
VIEWER_FRIENDS 

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

37.

What is the fuctionallity of the "gadgets.MiniMessage" class in OpenSocial (v0.7)?

Answer

Correct Answer: To create messages that will appear to the user within the gadget

Note: This Question is unanswered, help us to find answer for this one

38.

In Persistence API, the data store only accepts strings for storage, which means that you must convert complex data structures to strings before saving them. Which of the following functions is used to convert JavaScript objects and arrays to a string value?

Answer

Correct Answer: gadgets.json.stringify

Note: This Question is unanswered, help us to find answer for this one

39.

Which of the following are compulsory for creating an OpenSocial (v0.7) application for Orkut?l API (v0.7)?

Answer

Correct Answer: Orkut ID
Sandbox access
Text editor

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

40.

Which of the following Roles are defined in OpenSocial API (v0.7)?

Answer

Correct Answer: Viewer
Owner
Friend

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

41.

When you add an application to orkut sandbox by using OpenSocial (v0.7), which of the following types of users can add the application?

Answer

Correct Answer: None of the above

Note: This Question is unanswered, help us to find answer for this one

42.

What will the following code fetch for variable "xyz" in OpenSocial for Orkut? Var xyz=gadgets.util.getUrlParameters()["gadgetId"];

Answer

Correct Answer: Application ID

Note: This Question is unanswered, help us to find answer for this one

43.

Which of the following objects are defined in the 'add' method, under  'OpenSocial.DataRequest' namespace?

Answer

Correct Answer: newFetchPeopleRequest(idSpec, opt_params)
newFetchPersonAppDataRequest(idSpec, keys)
newUpdatePersonAppDataRequest(id, key, value)

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

44.

You have created an OpenSocial API  "test.xml" and integrated it into Google App Engine. You don't want just anybody to be able to access your application data through the "test.xml" API. What should you do in order to restrict access to the users?

Answer

Correct Answer: Add Digital signatures to the API xml file

Note: This Question is unanswered, help us to find answer for this one

45.

You have done a lot of testing in your OpenSocial API and now you want to delete all the "Persistence Data". The following method is used to clear the data: var req = OpenSocial.newDataRequest(); req.add(     req.newUpdatePersonAppDataRequest (OpenSocial.DataRequest.PersonId.VIEWER, --, --), "set_data"); req.send(set_callback); The above command has some arguments missing at --. Which of the following set of arguments will complete the above command?

Answer

Correct Answer: *, null

Note: This Question is unanswered, help us to find answer for this one

46.

You can not send mails to friends by using OpenSocial (v0.7) for Orkut application?

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

47.

Consider the following code for OpenSocial application (v0.7) for Orkut? http://sandbox.orkut.com/Application.aspx?appId=xxxxxxxxxxxx&appParams=%7B%20%22hello%22%20%3A%20%22hi%22%20%7D If the above mentioned url is passed and processed by the following code, what will be the value of "getOutput"? var querydata = gadgets.views.getParams(); var getOutput = querydata["hello"];

Answer

Correct Answer: hi

Note: This Question is unanswered, help us to find answer for this one

48.

Which of the following are the supported keys for the Url.getField() method.?

Answer

Correct Answer: ADDRESS
LINK_TEXT
TYPE

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

49.

Suppose you have chosen to install an OpenSocial API named "Games" in your orkut profile. Which of the following identities is taken by you by installing the application?

Answer

Correct Answer: OWNER

Note: This Question is unanswered, help us to find answer for this one

50.

Which of the following namespaces are included in OpenSocial JavaScript API (v0.7)?

Answer

Correct Answer: OpenSocial-0.7.*
MyOpenSpace.*
OpenSocial.*

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

51.

What is the function of the "makerequest()" method in OpenSocial API (v0.7)?

Answer

Correct Answer: It is used to fetch content from other remote web servers and web pages

Note: This Question is unanswered, help us to find answer for this one

52.

Which of the following are the valid RequestParameters under 'gadgets.io. Parameters' namespace?

Answer

Correct Answer: POST_DATA
CONTENT_TYPE

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

53.

If the content is a feed and you want to fetch the number of entries in OpenSocial (v0.7), which object field of class "gadgets.io.RequestParameters" will be used?

Answer

Correct Answer: NUM_ENTRIES

Note: This Question is unanswered, help us to find answer for this one

54.

You can embed flash objects with OpenSocial (v0.7).

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

55.

Which of the following are the components of the OpenSocial API (v0.7)?

Answer

Correct Answer: JavaScript API
Gadgets
RESTful API

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one