Sunday, August 5, 2018

Python - REST, JSON, and APIs - Quiz


Question 1

1
point

1. Question 1


Who is credited with the REST approach to web services?


Daphne Koller


Bjarne Stroustrup


Leonard Klienrock


Vint Cerf


Roy Fielding
Question 2
1
point

2. Question 2


What Python library do you have to import to parse and handle JSON?


ElementTree


BeautifulSoup


import re


import json
Question 3
1
point

3. Question 3


Which of the following is a web services approach used by the Twitter API?


SOAP


REST


XML-RPC


CORBA
Question 4
1
point

4. Question 4


What kind of variable will you get in Python when the following JSON is parsed:
1
2
3
4
{ "id" : "001",
"x" : "2",
"name" : "Chuck"
}


A list with six items


A list of tuples


A dictionary with three key / value pairs


A tuple with three items


A list with three items
Question 5
1
point

5. Question 5


Which of the following is not true about the service-oriented approach?


An application makes use of the services provided by other applications


Web services and APIs are used to transfer data between applications


Standards are developed where many pairs of applications must work together


An application runs together all in one place
Question 6
1
point

6. Question 6


Which of these two web service approaches is preferred in most modern service-oriented applications?


REST - Representational state transfer


SOAP - Simple Object Access Protocol
Question 7
1
point

7. Question 7


What library call do you make to append properly encoded parameters to the end of a URL like the following:
1
http://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=Ann
+Arbor%2C+MI


re.encode()


urllib.parse.urlencode()


re.match()


urllib.urlcat()
Question 8
1
point

8. Question 8


What happens when you exceed the Google geocoding API rate limit?


Your application starts to perform very slowly


You canot use the API until you respond to an email that contains a survey question


You cannot use the API for 24 hours


The API starts to perform very slowly
Question 9
1
point

9. Question 9


What protocol does Twitter use to protect its API?


Java Web Tokens


OAuth


SOAP


SHA1-MD5


PKI-HMAC


WS*Security
Question 10
1
point

10. Question 10


What header does Twitter use to tell you how many more API requests you can make before you will be rate limited?


x-max-requests


content-type


x-request-count-down


x-rate-limit-remaining

14 comments:

  1. Really nice blog post.provided a helpful information.I hope that you will post more updates like thisData Science online Course Hyderabad

    ReplyDelete
  2. Please provide answers of these questions!!

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Thank you so much ,very nice post .This is the exact blog that i am searching for.The content is very clear.
    Big Data Certification courses in Bangalore

    ReplyDelete