Sunday, August 5, 2018

Python - eXtensible Markup Language - Quiz


Question 1

1
point

1. Question 1


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


Sorting all the data stored in a tuple


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


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


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

2. Question 2


Which of the following are not commonly used serialization formats?


XML


Dictionaries


TCP


HTTP


JSON
Question 3
1
point

3. Question 3


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

1
2
3
4
5
6
7
8
9
10
<people>
<person>
<name>Chuck</name>
<phone>303 4456</phone>
</person>
<person>
<name>Noah</name>
<phone>622 7421</phone>
</person>
</people>


name


phone


Noah


person


people
Question 4
1
point

4. Question 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>


email


name


type


person


hide
Question 5
1
point

5. Question 5


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

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


c


a


e


b
Question 6
1
point

6. Question 6


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>


Z


a


Y


b


e
Question 7
1
point

7. Question 7


What is the purpose of XML Schema?


To transfer XML data reliably during network outages


A Python program to tranform XML files


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


To establish a contract as to what is valid XML
Question 8
1
point

8. Question 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?


maxOccurs


xs:element


xs:sequence


xs:complexType


xs:enumeration
Question 9
1
point

9. Question 9


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


Universal Time / GMT


The local time zone of the receiving computer


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


The local time zone of the sending computer
Question 10
1
point

10. Question 10


Which of the following dates is in ISO8601 format?


05/30/2002


2002-May-30


May 30, 2002


2002-05-30T09:30:10Z

13 comments: