REST, JSON, and APIs

10 试题

1.

Who is credited with getting the JSON movement started?

Pooja Sankar

Mitchell Baker

Douglas Crockford

Bjarne Stroustrup

2.

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

ElementTree

BeautifulSoup

import re

import json

3.

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

json.read()

json.connect()

json.loads()

json.parse()

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 dictionary with one key / value pair

Three tuples

One Tuple

5.

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

Web services and APIs are used to transfer data between applications

Standards are developed where many pairs of applications must work together

An application makes use of the services provided by other applications

An application runs together all in one place

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

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.encode()

re.match()

urllib.urlencode()

urllib.urlcat()

8.

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

The API starts to perform very slowly

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

9.

What protocol does Twitter use to protect its API?

OAuth

WS*Security

PKI-HMAC

Java Web Tokens

SOAP

SHA1-MD5

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

Coursera课程Python for everyone:Quiz: REST, JSON, and APIs相关推荐

  1. Coursera课程Python for everyone:Quiz: Multi-Table Relational SQL

    Multi-Table Relational SQL 10 试题 1. What is the primary added value of relational databases over fla ...

  2. Coursera课程Python for everyone:Quiz: eXtensible Markup Language

    eXtensible Markup Language 10 试题 1. What is "serialization" when we are talking about web ...

  3. Coursera课程Python for everyone:Quiz: Regular Expressions

    Quiz: Regular Expressions 10 试题 1. Which of the following best describes "Regular Expressions&q ...

  4. Coursera课程Python for everyone:Quiz: Many-to-Many Relationships and Python

    Many-to-Many Relationships and Python 9 试题

  5. Coursera课程Python for everyone:Quiz: Single-Table SQL

    Single-Table SQL 11 试题 1. Structured Query Language (SQL) is used to (check all that apply) Delete d ...

  6. Coursera课程Python for everyone:Quiz: Object Oriented Programming

    Object Oriented Programming 11 试题 1. Which came first, the instance or the class? instance class fun ...

  7. Coursera课程Python for everyone:Quiz: Reading Web Data From Python

    Reading Web Data From Python 8 试题 1. Which of the following Python data structures is most similar t ...

  8. Coursera课程Python for everyone:Quiz: Networks and Sockets

    Networks and Sockets 10 试题 1. What do we call it when a browser uses the HTTP protocol to load a fil ...

  9. Coursera课程Python for everyone:chapter10

    Chapter 10 Quiz 10 试题 1. What is the difference between a Python tuple and Python list? Lists are mu ...

最新文章

  1. 程序员的自我修养--链接、装载与库笔记:目标文件里有什么
  2. GitHub一日千星:开头一张图,自动变成《我的世界》、乐高、十字绣风格,有Python就能跑...
  3. window mobile 5.0截获来电
  4. python变量命名规则思维导图_Python思维导图详解
  5. Atitit。Cas机制 软件开发 编程语言 无锁机制 java c# php
  6. 初学react.js
  7. [转载]DB2数据库移植罕见结果周全理会(3)
  8. 【Codeforces Round #185 (Div. 2) C】The Closest Pair
  9. 仿照MEMZ做一个特效程序
  10. CWRU滚动轴承数据集简介
  11. 解决TCP延迟应答(Delay ACK)问题的3个小Trick
  12. springboot配置文件密文解密
  13. apache与tomcat动静分离
  14. 机器学习作业(第十八次课堂作业)
  15. Linux部署KVM虚拟化平台
  16. 2022最新面试题(含css、html、js、es6、Vue)
  17. Cardboard -VR全景浏览
  18. 【SQL Server】无需公网IP,就可以远程连接SQL Server数据库
  19. 什么是代理IP池,如何构建?
  20. 中科院回应“木兰”套壳争议:当事人5年不得晋升,取消3年科研项目申请资格

热门文章

  1. 全球经济美国中国日本英国欧元区德国法国意大利西班牙
  2. quartz mysql 建表_quartz创建表语句
  3. Spring5源码 - 05 invokeBeanFactoryPostProcessors 源码解读_3细说invokeBeanDefinitionRegistryPostProcessors
  4. MySQL- In 和 Exists的优化案例讲解
  5. 白话Elasticsearch07- 深度探秘搜索技术之基于term+bool实现的multiword搜索底层剖析
  6. WebView完全解读
  7. 信息提醒之对话框(AlertDialog + ProgressDialog)-更新中
  8. Imageloader3-单例模式
  9. php 处理html,PHP解析HTML代码
  10. mysql用户名长度_如何增加PhpMyAdmin / mysql用户帐户的用户名长度?