Quiz 6(第六周)
REST, JSON, and APIs
1.Who is credited with getting the JSON movement started?
Pooja Sankar
Mitchell Baker
Douglas Crockford
Bjarne Stroustrup
2.Which of the following is true about an API?
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?
json.loads()
json.connect()
json.parse()
json.read()
4.What kind of variable will you get in Python when the following JSON is parsed: [ “Glenn”, “Sally”, “Jen” ]
A list with three items
A dictionary with three key / value pairs
A dic