Which of the following type conventions are used in OpenSocial Gadgets API?
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
Correct Answer:
ModulePrefs>
Note: This Question is unanswered, help us to find answer for this one
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
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?
Correct Answer:
Content type="html" view="profile,canvas">
Note: This Question is unanswered, help us to find answer for this one
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?
Correct Answer:
Require feature="OpenSocial-0.7" />
Note: This Question is unanswered, help us to find answer for this one
Which of the following elements are present under
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
What is the purpose of the "gadgets.util.escapeString" function?
Correct Answer:
It is used to HTML encode the string
Note: This Question is unanswered, help us to find answer for this one
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?
Correct Answer:
gadgets.io.makeRequest
Note: This Question is unanswered, help us to find answer for this one
Which of the following user general profile fields cannot be accessed in orkut applications for OpenSocial (v0.7)?
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
IN OpenSocial, errors are returned through 'OpenSocial.ResponseItem.Error' namespace. Which of the following is not an error code?
Correct Answer:
NOT_FOUND
Note: This Question is unanswered, help us to find answer for this one
Persistence API provides a storage mechanism to save and load data. In which form is the data stored?
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
Which of the following languages are used for integrating OpenSocial API with Google App Engine?
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
What do you mean by "Activity" in OpenSocial API (v0.7)?
Correct Answer:
Action performed by a user
Note: This Question is unanswered, help us to find answer for this one
Which of the following request is sent to the apiserver when an OpenSocial API wants to call the Google App Engine server for data,?
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
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?
Correct Answer:
gadgets.util.registerOnLoadHandler(getfriends);
Note: This Question is unanswered, help us to find answer for this one
In the process of integrating OpenSocial API with Google App Engine, you do not need to maintain any servers.
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
In OpenSocial API, the "gadgets.Prefs" namespace enables the end user to _____.
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
Which of the following 'DataRequest' methods will be used in order to read, write and clear data from Persistence API?
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
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?
Correct Answer:
size()
Note: This Question is unanswered, help us to find answer for this one
Which of the following Content Type Requests are handled by the gadgets.io.makeRequest(url, callback, opt_params) method?
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
What is the function of the "gadgets.pubsub" namespace in OpenSocial API (v0.7)?
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
In OpenSocial API, "OpenSocial.IdSpec.Field" namespace is used _____.
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
Which statements are incorrect with regard to the implementation of OpenSocial (v0.7)?
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
Which of the following are the supported keys for the Person.getField() method.?
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
What does
Correct Answer:
Characteristics of the gadget
Note: This Question is unanswered, help us to find answer for this one
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?
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
What will happen if "&bpc=1" is appended to an orkut application canvas page url as querystring?
Correct Answer:
It will load a fresh copy of the page
Note: This Question is unanswered, help us to find answer for this one
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
Correct Answer:
4,2,3,1
Note: This Question is unanswered, help us to find answer for this one
With the help of the 'gadgets.io.makeRequest()' function in OpenSocial API, you can _____.
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
What kind of data can be saved and retrieved in OpenSocial API (v0.7)?
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
Which of the following are the valid ContentTypes under 'gadgets.io.ContentType' namespace?
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
In RESTful Data API, the server interactions are handled by _______ protocol and the Authentication is handled by _____.
Correct Answer:
AtomPub, OAuth
Note: This Question is unanswered, help us to find answer for this one
What is the functionality of the "getdomain" method in the Environment class in OpenSocial API (v0.7)?
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
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?
Correct Answer:
app.yaml
Note: This Question is unanswered, help us to find answer for this one
Which of the following methods are defined under "OpenSocial.Permission" namespace?
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
Which of the following are the constant identifiers in OpenSocial API?
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
What is the fuctionallity of the "gadgets.MiniMessage" class in OpenSocial (v0.7)?
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
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?
Correct Answer:
gadgets.json.stringify
Note: This Question is unanswered, help us to find answer for this one
Which of the following are compulsory for creating an OpenSocial (v0.7) application for Orkut?l API (v0.7)?
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
Which of the following Roles are defined in OpenSocial API (v0.7)?
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
When you add an application to orkut sandbox by using OpenSocial (v0.7), which of the following types of users can add the application?
Correct Answer:
None of the above
Note: This Question is unanswered, help us to find answer for this one
What will the following code fetch for variable "xyz" in OpenSocial for Orkut? Var xyz=gadgets.util.getUrlParameters()["gadgetId"];
Correct Answer:
Application ID
Note: This Question is unanswered, help us to find answer for this one
Which of the following objects are defined in the 'add' method, under 'OpenSocial.DataRequest' namespace?
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
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?
Correct Answer:
Add Digital signatures to the API xml file
Note: This Question is unanswered, help us to find answer for this one
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?
Correct Answer:
*, null
Note: This Question is unanswered, help us to find answer for this one
You can not send mails to friends by using OpenSocial (v0.7) for Orkut application?
Correct Answer:
False
Note: This Question is unanswered, help us to find answer for this one
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"];
Correct Answer:
hi
Note: This Question is unanswered, help us to find answer for this one
Which of the following are the supported keys for the Url.getField() method.?
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
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?
Correct Answer:
OWNER
Note: This Question is unanswered, help us to find answer for this one
Which of the following namespaces are included in OpenSocial JavaScript API (v0.7)?
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
What is the function of the "makerequest()" method in OpenSocial API (v0.7)?
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
Which of the following are the valid RequestParameters under 'gadgets.io. Parameters' namespace?
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
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?
Correct Answer:
NUM_ENTRIES
Note: This Question is unanswered, help us to find answer for this one
You can embed flash objects with OpenSocial (v0.7).
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Which of the following are the components of the OpenSocial API (v0.7)?
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
OpenSocial MCQs | Topic-wise