Facebook Open Platform Development MCQs

Facebook Open Platform Development MCQs

These Facebook Open Platform Development multiple-choice questions and their answers will help you strengthen your grip on the subject of Facebook Open Platform Development. You can prepare for an upcoming exam or job interview with these 40 Facebook Open Platform Development MCQs.
So scroll down and start answering.

1: Does facebook.events.getMembers return the RSVP status for the Facebook members for a given event?

A.   Yes

B.   No

2: How many maximum notifications can be sent by an application per day?

A.   40

B.   60

C.   80

D.   100

E.   No limit

3: By passing the email param to which method can email notifications be sent?

A.   notifications.send

B.   notifications.sendEmail

C.   notifications.email

4:

Analyze the following code and state whether the statement that follows is true or false?


B.  

False

5: How many character strings do the user preferences for the API consist of for each user?

A.   16

B.   32

C.   64

D.   128

E.   256

6: By submitting which variable can Facebook Applications use cross-domain scripting when authenticating the auth token?

A.   sig

B.   domain_script

C.   callback

D.   script_token

7: What does the parameter sig mean?

A.   The application key associated with the calling application

B.   The sequence number of the request

C.   An MD5 hash of the current request and your secret key

D.   The session key of the logged in user

E.   None of the above

8: Which error messages are associated only with FQL?

A.   Error while parsing FQL statement

B.   The submitted call_id was not greater than the previous call_id for this session

C.   One of the parameters specified was missing or invalid

9: What does the parameter skipcookie mean?

A.   An alternative way for the login page that does not contain any Facebook navigational elements

B.   You can pass this to the Facebook login URL to allow a user to re-enter their login information

C.   Avoid cookie being stored on the client system

D.   Infinite session should be maintained to avoid relogin

10: Which of the following is not an FQL table?

A.   user

B.   event_member

C.   group_member

D.   friend_member

11:

What will happen if you execute the following FQL query?


       SELECT eid, name, location

       FROM event

       WHERE eid IN (SELECT eid

       FROM event_member)

A.  

The query successfully executes returning eid, name and location.

B.  

An error is raised and the error message ‘The field you requested does not exist’ is shown.

C.  

The resulting XML response shows an error message: Error while parsing FQL statement.  

D.  

The error message ‘The table requested doesn't exist’ is shown.

E.  

None of the above

12: Which one of the following is the Error code for the message

A.   110

B.   111

C.   121

D.   130

13: With desktop applications, which parameter can be used to create a call stack?

A.   request_id

B.   call_id

C.   process_id

D.   execute_id

14: When will the API_EC_TIMEOUT error come?

A.   When the user's login credentials for Facebook are incorrect

B.   When the applications API key is invalid

C.   When the user already has an application session open with another application

D.   When the current session key expires

15: Which group of API functions has a mechanism that provides better performance for lookups without centralized indexes?

A.   Specialized tables

B.   Distributed tables

C.   Associations

D.   Specialized procedures

E.   None of the above

16: Which method of Facebook class checks for the session key and redirects the user to the Facebook website to perform the authentication if it is unable to find the session key for the user to work with the application?

A.   require_user()

B.   auth_login()

C.   auth_user()

D.   require_login()

17: Which method returns the identifiers of friends signed up for the calling application?

A.   friends.getLists

B.   friends.getAppUsers

C.   friends.areFriends

D.   friends.get

18: Which of the following methods is used to calculate the Feed Points(FP)?

A.   ceil( FRIENDS / 20 ) * PRIORITY

B.   ceil( PRIORITY / 20 ) * USERS

C.   ceil( USERS / 20 ) * FRIENDS

D.   ceil( PRIORITY / 20 ) * FRIENDS

19:

Which type of associations are associations between objects that can happen when there’s no need to look up a value by some ID for a given object?


 Which type of associations are associations between objects that can happen when there’s no need to look up a value by some ID for a given object?

A.  

One-way associations

B.  

Symmetric associations

C.  

Asymmetric associations

D.  

None of the above 

20: Which REST API method creates an authentication token which is then passed to the Facebook authentication mechanism?

A.   facebook.auth.createToken

B.   facebook.auth.getToken

C.   facebook.auth.getSession

D.   facebook.auth.createSession

21: What does the Data.getAssociatedObjectsCount do?

A.   It is not a function or method associated with the API.

B.   This method returns the count of object ids that are associated with a specified object.

C.   This method counts the items in an array and then converts them to JSON.

D.   This method returns the counts of the associated objects of a list of objects.

22: Which FQL function returns the position of the character needle in the string haystack?

A.   strlen()

B.   strstackpos()

C.   strpos()

D.   strfind()

23: Which error messages are associated only with the photos.addTag method?

A.   Invalid user id

B.   Invalid album id

C.   Invalid photo id

D.   Missing or invalid file

24: How does the Facebook API tie accept IP addresses to your application?

A.   The first IP to connect to the application is always allowed and the rest are disallowed.

B.   A variable called valid_ips is passed upon logging into the application.

C.   When the api_key variable is passed to FBAPI, the API can pull these IPs from your application profile.

A.   profile.setFBML()

B.   profile.setProfileAction()

C.   profile.setProfileFMBL()

D.   profile.setProfileLink()

26: How many maximum items do batch APIs contain?

A.   10

B.   20

C.   30

D.   40

E.   No limit

27: Which of the following methods takes a query and returns a response object?

A.   fql.query.execute

B.   fql.query

C.   fbapi.fql.query

D.   None of the above

28: What does data.getObjectTypes method do?

A.   This method is not related to Facebook API.

B.   This method returns a list of all defined object types.

C.   This method returns the detailed definition of an object type.

D.   This method returns the properties of a list of objects by ids.

29: Which category of REST API calls provides methods to send messages to the users?

A.   facebook:users

B.   facebook:notifications

C.   facebook:events

D.   facebook:feed

30: Which of the following constants can be used in a tag that requires the UID of the current user?

A.   user_id

B.   profileowner

C.   profileuser

D.   loggedinuser

31: Which of the following are not valid FBML methods?

A.   facebook.fbml.refreshImgSrc

B.   facebook.fbml.setRefHandles

C.   facebook.fbml.refreshRefUrl

D.   facebook.fbml.refreshSrcImg

32: Which of the following syntaxes are valid for setStyle method?

A.   obj.setStyle('height', '200');

B.   obj.setStyle('text-decoration', 'underline')

C.   obj.setStyle({color: 'black', background: 'white'});

33: Which of the following is not a valid Facebook API error message?

A.   The request has come from a remote address not allowed by this application.

B.   The API key submitted is not associated with any known application.

C.   Wrong number of arguments has passed into the function.

D.   The parameters specified have null values.

34: Which of the following prefixes distinguishes between HTML and FBML commands?

A.   fb:

B.   htfb:

C.   fbml:

D.   None of the above

35: Which of the following are the two most important pieces of information that must be added to every page of your application?

A.   Session key

B.   Secret key

C.   API key

D.   Infinite session

E.   User Id

36: Which of the following error messages is not associated only with the feed.publishTemplatizedAction method?

A.   One or more of the target ids for this story are invalid. They must all be ids of the friends of the acting user.

B.   Either the required parameters are missing from the feed story title template or all the parameters have not been defined in the title_data array.

C.   The application has reached the maximum number of requests allowed. More requests are allowed only when the time window has completed.

D.   The feed story body_data argument was not a valid JSON-encoded array.

37:

Which FQL method is similar to the following query?


SELECT eid, name, tagline, nid, pic, pic_big, pic_small, host, description,

               event_type, event_subtype, start_time, end_time, creator, update_time,

               location, venue

        FROM event

        WHERE eid IN (SELECT eid FROM event_member

        WHERE uid=uid AND rsvp_status=rsvp_status) AND

              eid IN (eids) AND

              end_time >= start_time AND

              start_time < end_time

A.  

facebook.events.getMembers

B.  

facebook.events.get

C.  

facebook.events.getAppMembers

D.  

None of the above

38: Which method can be used to return a set of gids associated with uids?

A.   facebook.users.getInfo

B.   facebook.groups.get

C.   facebook.friends.get

D.   facebook.groups.getUsers

E.   None of the above.

39: Which communication protocol is used when executing the auth.createToken method in Desktop applications?

A.   HTTPS

B.   IMAP

C.   JSON

40: Which method returns a list of your friends?

A.   friends.getLists

B.   friends.areFriends

C.   friends.getAppUsers

D.   friends.get

41:

For which division in the Facebook are the following style properties mainly used?


        background: #D8DFEA none repeat scroll 0%;

        border-top: 1px solid #3B5998;

        margin: 0px;

        padding: 2px 8px;


A.  

Left panel  

B.  

Right panel 

C.  

Header

D.  

Footer

42: Which type of parameters does Batch API require while calling?

A.   JSON array

B.   data

C.   fb_sig

D.   bool

43: Which of the following is not a component of the Facebook Platform?

A.   Client Libraries

B.   FQL

C.   FBML

D.   SOAP