Friday, 27 February 2015

Twitter Developer Test Questions

oDesk Twitter Developer Test

Question: 1

Which HTTP Status code  will be returned by the Twitter API if the client exceeds the rate limit of sending requests?
a. 400
b. 401
c. 402
d. 403

Question: 2

State whether the following statement is true or false
Twitter applications are not allowed to be hosted on sites having personal data or blogs.
a. True
b. False

 

Question: 3

Which of the following request headers can be used for making the Status API calls?
a. X-Twitter-Client
b. X-Twitter-Client-type
c. X-Twitter-Client-Version
d. X-Twitter-Client-URL

 

Question: 4

Twitter requests return data in the following formats:
a. xml
b. json
c. rss
d. atom
e. JsonML

 

Question: 4

What will be the output of the following API call?
http://twitter.com/account/rate_limit_status.xml
a. It will return the number of remaining API requests allowed before exceeding the rate limit.
b. It will reset your request count to zero.
c. It will add you to the whitelist for an enhanced rate limit.
d. It will return the number of API requests posted in the last one hour.

 

Question: 6

What is the data type of the favorited data element?
a. Integer
b. Character
c. Boolean
d. Varchar

 

Question: 7

Suppose you want to use the Search API for returning results pertaining to the keyword 'French'. The results should be returned in German and there should be 50 results per page.
Which API call will you use?
a. http://search.twitter.com/search.atom?lang=en&q=French&rpp=50
b. http://search.twitter.com/search.atom?lang=fr&q=French&rpp=50
c. http://search.twitter.com/search.atom?lang=de&q=French&rpp=50
d. http://search.twitter.com/search.atom?lang=gr&q=French&rpp=50
e. http://search.twitter.com/search.atom?lang=fr&q=German&rpp=50

 

Question: 8

The Notification Methods require the authenticated user to already be friends with the specified user otherwise the error "there was a problem following the specified user" will be returned?
a. True
b. False

 

Question: 9

What will the following API  call return?

a. It will return the 10 most recent statuses posted by the authenticating user and that user's friends.
b. It will return the 20 most recent statuses posted by the authenticating user and that user's friends.
c. It will return the 30 most recent statuses posted by the authenticating user and that user's friends.
d. It will return the 40 most recent statuses posted by the authenticating user and that user's friends.

 

Question: 10

What will the test function of the help method return?
a. It will return the string "No Content" in the requested format with a 200 No Content HTTP status code.
b. It will return the string "ok" in the requested format with a 200 OK HTTP status code.
c. It will return the string "ok" in the requested format with a 202 OK HTTP status code.
d. It will return the string "No Content" in the requested format with a 202 No Content HTTP status code.

 

Question: 11

What will be returned by the following  API call?
http://twitter.com/direct_messages.xml
a. It will return the detailed information about the authenticated user and the user's friend
b. It will return a list of the 20 most recent direct messages sent to the authenticating user.
c. It will return a list of all the recent direct messages sent to the authenticating user.

 

Question: 12

What functions will the following API call perform?
a. It will send a request for the authenticating user to follow karl.
b. It will enable notifications in addition to becoming friend.
c. It will add karl. to the favorite list in addition to becoming friend.
d. It will give access to karl to view direct messages in addition to becoming friend.

 

Question: 13

What will the search API call return if the search parameter "q" is provided with the keyword "movie:("?
a. It will search tweets containing "movie:("
b. It will search tweets containing "movie:(" and with a negative attitude
c. It will search tweets containing "movie:(" and with a positive attitude
d. It will search tweets containing "movie:(" and asking a question

 

Question: 14

Supposing that in your direct message box, you have 25 messages, and you want to display the messages after the twentieth message.
What will be the requesting API call?
a. http://twitter.com/direct_messages.xml?page=1
b. http://twitter.com/direct_messages.xml?page=2
c. http://twitter.com/direct_messages.xml?page=3
d. http://twitter.com/direct_messages.xml

 

Question: 15

By default, how many API requests can a client send per hour?
a. 50
b. 100
c. 150
d. 200

 

Question: 16

What is the maximum number of results per page that can be displayed by the Search API?
a. 20
b. 50
c. 100
d. There is no limit

 

Question: 17

What will be the API call to return the IDs of the authenticating user's followers?
a. http://api.twitter.com/1/friends/ids.format
b. http://api.twitter.com/1/followers/ids.format
c. http://api.twitter.com/1/friendships /ids.format
d. http://api.twitter.com/1/statuses/friends_timeline/ids.format

 

Question: 18

Which API call will you use to return the authenticating user's friends in the order by which the user followed them ,most recently followed first?
a. statuses/friends
b. statuses/followers
c. statuses/show
d. statuses/friends_line

 

Question: 19

What will the following API call return?
a. It will return the id of john.
b. It will return the ids of all the friends of john.
c. It will return the ids of the mutual friends of john and the authenticating user.
d. It will return an error notification.

 

Question: 20

Does the Twitter API provide a method for the authenticating user to get a notification from a specified user?
a. Yes
b. No

 

Question: 21

What will the Search API call return if the search parameter "q" is provided with the keyword Air Bus?
a. It will search tweets containing both "Air" and "Bus".
b. It will search tweets containing the exact phrase "Air Bus".
c. It will search tweets containing "Air" but not "Bus".
d. It will search tweets containing either "Air" or "Bus" or both.

 

Question: 22

Which function you will use to mark a status as un-favorite?
a. favorites
b. unfavorites
c. destroy
d. follow

 

Question: 23

What will the following API call return?
http://twitter.com/blocks/destroy/john.xml
a. It will block john from the authenticating user.
b. It will un-block john for the authenticating user.
c. It will display all of john's blocked users.
d. It will display all of john's un-blocked users.

 

Question: 24

What is the purpose of requesting whitelisting?
a. To approve the API created by the developer
b. To increase the rate limit
c. To send requests for adding a friend
d. To approve of the requests of friends

 

Question: 25

Which of the following are necessary to make a request for whitelist?
a. You should have a Twitter account
b. You must be signed in
c. Your Twitter account should be 6 months older
d. You must be a developer

 

Question: 26

Which of the following is not a parameter of the update_profile account method?
a. name
b. location
c. id
d. url
e. description

 

Question: 27

Which method will you use to enable notifications for updates from the specified user to the authenticating user?
a. notifications/follow
b. notifications/leave
c. notifications/notify

 

Question: 28

You can update the status of the authenticated users using the update status method. What is the maximum length allowed for the text for your status update?
a. It should not be more than 100 characters.
b. It should not be more than 140 characters. (Answer)
c. It should not be more than 200 characters.
d. It depends upon the text. There is no such character limit.

 

Question: 29

What is the data type of the recipient_id data element?
a. Varchar
b. Character
c. Boolean
d. None of the above

 

Question: 30

What does the friends_count element describe?
a. The number of users following a user's updates
b. A Boolean value indicating if a user is following a given user (Answer)

c. The number of users a user is following

No comments: