0
点赞
收藏
分享

微信扫一扫

Coursera Using python to access Web data quiz6

高子歌 2022-02-18 阅读 79

第 1 个问题
Who is credited with getting the JSON movement started?

1 分

Pooja Sankar

Mitchell Baker

Douglas Crockford

Bjarne Stroustrup

第 2 个问题
Which of the following is true about an API?

1 分

An API is a contract that defines how to use a software library

An API defines the pin-outs for the USB connectors

An API defines the header bits in the first 8 bits of all IP packets

An API keeps servers running even when the power is off

第 3 个问题
What is the method used to parse a string containing JSON data so that you can work with the data in Python?

1 分

json.loads()

json.connect()

json.parse()

json.read()

第 4 个问题
What kind of variable will you get in Python when the following JSON is parsed:

1
[ “Glenn”, “Sally”, “Jen” ]

1 分

A list with three items

A dictionary with three key / value pairs

A dictionary with one key / value pair

Three tuples

One Tuple

第 5 个问题
Which of the following is not true about the service-oriented approach?

1 分

Standards are developed where many pairs of applications must work together

Web services and APIs are used to transfer data between applications

An application runs together all in one place

An application makes use of the services provided by other applications

第 6 个问题
If the following JSON were parsed and put into the variable x,

1110789456123
{
“users”: [
{
“status”: {
“text”: “@jazzychad I just bought one .__.”,
},
“location”: “San Francisco, California”,
“screen_name”: “leahculver”,
“name”: “Leah Culver”,
},

what Python code would extract “Leah Culver” from the JSON?

1 分

x->name

x[“name”]

x[“users”][“name”]

x[“users”][0][“name”]

x[0][“name”]

第 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
Follow link (ctrl + click)

1 分

urllib.urlcat()

urllib.parse.urlencode()

re.match()

re.encode()

第 8 个问题
What happens when you exceed the Google geocoding API rate limit?

1 分

Your application starts to perform very slowly

You cannot use the API for 24 hours

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

The API starts to perform very slowly

第 9 个问题
What protocol does Twitter use to protect its API?

1 分

Java Web Tokens

OAuth

SHA1-MD5

SOAP

PKI-HMAC

WS*Security

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

1 分

x-request-count-down

content-type

x-max-requests

x-rate-limit-remaining

举报

相关推荐

0 条评论