Coursera | Using python to access web data quiz6

第一次

1.第 1 个问题
Who is credited with the REST approach to web services?
Bjarne Stroustrup
Roy Fielding
Leonard Klienrock
Daphne Koller
Vint Cerf
1 分
答案:Roy Fielding
2.第 2 个问题
What Python library do you have to import to parse and handle JSON?
ElementTree
import re
import json
BeautifulSoup
1 分
答案:import json
3.第 3 个问题
Which of the following is a web services approach used by the Twitter API?
XML-RPC
SOAP
CORBA
REST
1 分
答案:REST
4.第 4 个问题
What kind of variable will you get in Python when the following JSON is parsed:
{ “id” : “001”,
“x” : “2”,
“name” : “Chuck”
}
A dictionary with three key / value pairs
A list with three items
A list of tuples
A list with six items
A tuple with three items
1 分
答案:A dictionary with three key / value pairs
5.第 5 个问题
Which of the following is not true about the service-oriented approach?
Standards are developed where many pairs of applications must work together
An application makes use of the services provided by other applications
Web services and APIs are used to transfer data between applications
An application runs together all in one place
1 分
答案:An application runs together all in one place
6.第 6 个问题
If the following JSON were parsed and put into the variable x,
{
“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?
x[“users”][“name”]
x->name
x[“name”]
x[“users”][0][“name”]
x[0][“name”]
1 分
答案:x[“users”][0][“name”]
7.第 7 个问题
What library call do you make to append properly encoded parameters to the end of a URL like the following:
http://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=Ann+Arbor%
2C+MI
urllib.urlcat()
urllib.parse.urlencode()
re.encode()
re.match()
1 分
答案:urllib.parse.urlencode()
8.第 8 个问题
What happens when you exceed the Google geocoding API rate limit?
You cannot use the API for 24 hours
You canot use the API until you respond to an email that contains a survey question
The API starts to perform very slowly
Your application starts to perform very slowly
1 分
答案:You cannot use the API for 24 hours
9.第 9 个问题
What protocol does Twitter use to protect its API?
Java Web Tokens
PKI-HMAC
OAuth
SHA1-MD5
SOAP
WS*Security
1 分
答案:OAuth
10.第 10 个问题
What header does Twitter use to tell you how many more API requests you can make before you will be rate limited?
content-type
x-rate-limit-remaining
x-request-count-down
x-max-requests
1 分
答案:x-rate-limit-remaining

第二次

1.第 1 个问题
Who is credited with getting the JSON movement started?
Pooja Sankar
Mitchell Baker
Douglas Crockford
Bjarne Stroustrup
1 分
答案:Douglas Crockford
2.第 2 个问题
What Python library do you have to import to parse and handle JSON?
BeautifulSoup
import re
import json
ElementTree
1 分
答案:import json
3.第 3 个问题
Which of the following is a web services approach used by the Twitter API?
XML-RPC
REST
SOAP
CORBA
1 分
答案:REST
4.第 4 个问题
What kind of variable will you get in Python when the following JSON is parsed:
{ “id” : “001”,
“x” : “2”,
“name” : “Chuck”
}
A dictionary with three key / value pairs
A list of tuples
A list with three items
A tuple with three items
A list with six items
1 分
答案:A dictionary with three key / value pairs
5.第 5 个问题
Which of the following is not true about the service-oriented approach?
Standards are developed where many pairs of applications must work together
An application runs together all in one place
An application makes use of the services provided by other applications
Web services and APIs are used to transfer data between applications
1 分
答案:An application runs together all in one place
6.第 6 个问题
Which of these two web service approaches is preferred in most modern service-oriented applications?
SOAP - Simple Object Access Protocol
REST - Representational state transfer
1 分
答案:REST - Representational state transfer
7.第 7 个问题
What library call do you make to append properly encoded parameters to the end of a URL like the following:
http://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=Ann+Arbor%
2C+MI
urllib.urlcat()
re.encode()
urllib.parse.urlencode()
re.match()
1 分
答案:urllib.parse.urlencode()

8.第 8 个问题
What happens when you exceed the Google geocoding API rate limit?
Your application starts to perform very slowly
You cannot use the API for 24 hours
The API starts to perform very slowly
You canot use the API until you respond to an email that contains a survey question
1 分
答案:You cannot use the API for 24 hours
9.第 9 个问题
What protocol does Twitter use to protect its API?
SOAP
SHA1-MD5
Java Web Tokens
PKI-HMAC
WS*Security
OAuth
1 分
答案:OAuth
10.第 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
x-rate-limit-remaining
content-type
x-request-count-down
1 分
答案:x-rate-limit-remaining

第三次

1.第1个问题
Who is credited with getting the JSON movement started?
Douglas Crockford
Bjarne Stroustrup
Mitchell Baker
Pooja Sankar
1 分
2.第 2 个问题
What Python library do you have to import to parse and handle JSON?
import re
ElementTree
BeautifulSoup
import json
1 分
3.第 3 个问题
What is the method used to parse a string containing JSON data so that you can work with the data in Python?
json.connect()
json.parse()
json.read()
json.loads()
1 分
答案:json.loads()
4.第 4 个问题
What kind of variable will you get in Python when the following JSON is parsed:
{ “id” : “001”,
“x” : “2”,
“name” : “Chuck”
}
A list with six items
A tuple with three items
A list with three items
A dictionary with three key / value pairs
A list of tuples
1 分
5.第 5 个问题
Which of the following is not true about the service-oriented approach?
Web services and APIs are used to transfer data between applications
An application makes use of the services provided by other applications
An application runs together all in one place
Standards are developed where many pairs of applications must work together
1 分
6.第 6 个问题
Which of these two web service approaches is preferred in most modern service-oriented applications?
SOAP - Simple Object Access Protocol
REST - Representational state transfer
1 分
7.第 7 个问题
What library call do you make to append properly encoded parameters to the end of a URL like the following:
http://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=Ann+Arbor%
2C+MI
re.match()
urllib.parse.urlencode()
urllib.urlcat()
re.encode()
1 分
8.第 8 个问题
What happens when you exceed the Google geocoding API rate limit?
The API 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
Your application starts to perform very slowly
1 分
9.第 9 个问题
What protocol does Twitter use to protect its API?
OAuth
SHA1-MD5
SOAP
Java Web Tokens
PKI-HMAC
WS*Security
1 分
10.第 10 个问题
What header does Twitter use to tell you how many more API requests you can make before you will be rate limited?
content-type
x-max-requests
x-rate-limit-remaining
x-request-count-down
1 分

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值