Using python to access web data quiz5

1.第1个问题
What is the name of the Python 2.x library to parse XML data?
xml-misc
xml2
xml.etree.ElementTree
xml.json
C
2.第 2 个问题
What is the method to cause Python to parse XML that is stored in a string?
fromstring()
parse()
readall()
extract()
xpath()
A
3.第 3 个问题
In this XML, which are the “complex elements”?


Chuck
303 4456


Noah
622 7421


phone
name
person
people
Noah
CD:person people
4.第 4 个问题
In the following XML, which are attributes?

Chuck

+1 734 303 4456



hide
person
email
name
type
AE:hide,type
5.第 5 个问题
In the following XML, which node is the parent node of node e

X

Y
Z


b
e
c
a
C:第三个c
6.第 6 个问题
Looking at the following XML, what text value would we find at path “/a/c/e”

X

Y
Z


e
b
a
Y
Z
E最后一个:Z
7.第 7 个问题
What is the purpose of XML Schema?
To compute SHA1 checksums on data to make sure it is not modified in transit
A Python program to tranform XML files
To transfer XML data reliably during network outages
To establish a contract as to what is valid XML
D
8.第 8 个问题
For this XML Schema:
<xs:complexType name=”person”>
xs:sequence
<xs:element name=“lastname” type=“xs:string”/>
<xs:element name=“age” type=“xs:integer”/>
<xs:element name=“dateborn” type=“xs:date”/>
</xs:sequence>
</xs:complexType>
And this XML,

Severance
17
2001-04-17

Which tag is incorrect?
dateborn
lastname
person
age
Age
最后一个:Age
9.第 9 个问题
What does the “Z” mean in this representation of a time:
2002-05-30T09:30:10Z
This time is in the UTC timezone
The hours value is in the range 0-12
The local timezone for this time is New Zealand
This time is Daylight Savings Time
A
10.第 10 个问题
Which of the following dates is in ISO8601 format?
05/30/2002
2002-05-30T09:30:10Z
May 30, 2002
2002-May-30
B

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值