Coursera Using python to access Web data quiz 5
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"?
Chuckperson
Noah
name
phone
people
4.In the following XML, which are attributes?
1234567hide
type
name
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>
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"
1234567XYZY
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