PY4E: Chapter 13 (Part 1)

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Which of the following dates is in ISO8601 format?

2002-05-30T09:30:10Z

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, <person> <lastname>Severance</lastname> <Age>17</Age> <dateborn>2001-04-17</dateborn> </person> Which tag is incorrect?

Age

Which of the following are not commonly used serialization formats?

TCP, HTTP, Dictionaries

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

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

What does the "Z" mean in this representation of a time: 2002-05-30T09:30:10Z

This time is in the UTC timezone

What is the purpose of XML Schema?

To establish a contract as to what is a valid XML

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

Universal Time / GMT

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>

Z

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>

c

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

fromstring()

In the following XML, which are attributes? <person> <name>Chuck</name> <phone type="intl"> +1 734 303 4456 </phone> <email hide="yes" /> </person>

hide, type

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?

maxOccurs

In this XML, which are the "simple elements"? <people> <person> <name>Chuck</name> <phone>303 4456</phone> </person> <person> <name>Noah</name> <phone>622 7421</phone> </person> </people>

name, phone

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, people

What is the name of the Python 2.x library to parse XML data?

xml.etree.ElementTree


संबंधित स्टडी सेट्स

Bio Quiz Chapter 7 UNIT 10 Evolution and Natraul Selection

View Set

Biology chapter 5 question and answers

View Set