Coursera Using python to access Web data quiz 5

来源:互联网 发布:单片机是什么专业学的 编辑:程序博客网 时间:2024/05/20 09:23

1.What is "serialization" when we are talking about web services?

Marking each network packet so it can be put back into order on the receiving system

Sorting all the data stored in a tuple

The act of taking data stored in a program and formatting it so it can be sent across the network

Making it so that dictionaries can maintain their keys in sorted order

2.What is the method to cause Python to parse XML that is stored in a string?

fromstring()

parse()

readall()

extract()

xpath()

3.In this XML, which are the "complex elements"?

<people>
<person>
<name>Chuck</name>
<phone>303 4456</phone>
</person>
<person>
<name>Noah</name>
<phone>622 7421</phone>
</person>
</people>

person

Noah

name

phone

people

4.In the following XML, which are attributes?

1
2
3
4
5
6
7
<person>
<name>Chuck</name>
<phone type="intl">
+1 734 303 4456
</phone>
<email hide="yes" />
</person>

hide

type

name

email

person

5. In the following XML, which node is the parent node of node e

<a>
  <b>X</b>
  <c>
    <d>Y</d>
    <e>Z</e>
  </c>
</a>

b

e

c

a




6.Looking at the following XML, what text value would we find at path "/a/c/e"

<a>
  <b>X</b>
  <c>
    <d>Y</d>
    <e>Z</e>
  </c>
</a>

1
2
3
4
5
6
7
<a>
<b>X</b>
<c>
<d>Y</d>
<e>Z</e>
</c>
</a>

Y

e

Z

b

a




7.What is the purpose of XML Schema?

To establish a contract as to what is valid XML

A Python program to tranform XML files

To transfer XML data reliably during network outages

To compute SHA1 checksums on data to make sure it is not modified in transit


8. If you were building an XML Schema and wanted to limit the values allowed in an xs:string field to only those in a particular list, what XML tag would you use in your XML Schema definition?

xs:complexType

xs:sequence

maxOccurs

xs:element

xs:enumeration


9.What is a good time zone to use when computers are exchanging data over APIs?

The local time zone of the receiving computer

Universal Time / GMT

The local time zone of the sending computer without daylight savings time

The local time zone of the sending computer

10.Which of the following dates is in ISO8601 format?

05/30/2002

2002-05-30T09:30:10Z

May 30, 2002

2002-May-30

Looking at the following XML, what text value would we find at path "/a/c/e"

1
2
3
4
5
6
7
<a>
<b>X</b>
<c>
<d>Y</d>
<e>Z</e>
</c>
</a>

Y

e

Z

b

a

What is the purpose of XML Schema?

To establish a contract as to what is valid XML

A Python program to tranform XML files

To transfer XML data reliably during network outages

To compute SHA1 checksums on data to make sure it is not modified in transit

If you were building an XML Schema and wanted to limit the values allowed in an xs:string field to only those in a particular list, what XML tag would you use in your XML Schema definition?

xs:complexType

xs:sequence

maxOccurs

xs:element

xs:enumeration

What is a good time zone to use when computers are exchanging data over APIs?

The local time zone of the receiving computer

Universal Time / GMT

The local time zone of the sending computer without daylight savings time

The local time zone of the sending computer

Which of the following dates is in ISO8601 format?

05/30/2002

2002-05-30T09:30:10Z

May 30, 2002

2002-May-30

阅读全文
0 0
原创粉丝点击
热门IT博客
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 狐狸英语怎么写 宠物狐狸图片 狐狸可以养吗 狐狸能活多少年 狐狸可以当宠物养吗 狐狸属于什么科 狐狸英语怎么读 狐狸的英文单词 好看狐狸卡通图片 狐狸和乌鸦的故事 狐狸英文怎么读 关于狐狸的歌曲 关于狐狸的故事 狐狸在说什么 生了一窝狐狸宝宝 thefox狐狸叫 狐狸王爷的堂下妻 兔子和狐狸的故事 山羊和狐狸的故事 狐狸被派去买东西 狐狸和忠狗的爱恋 狮子和狐狸的故事 与狐狸有关的故事 狐狸毛和貂毛哪个好 貂毛和狐狸毛哪个好 养殖狐狸的成本和利润 井里的狐狸和山羊 狐狸毛和貂毛哪个贵 暴戾世子的狐狸妻 切洛努普的狐狸 宠物狐 狐图片 孤狸 huli 宠物雪狐 校园全能高手安山狐狸 狐狼 狐猴 环尾狐猴 狐猴图片 狐猴生活在哪里