<< Chapter < Page | Chapter >> Page > |
True or False: Empty elements may, and frequently will have attributes that store data about the element itself.
True or False: The syntax shown in Listing 4 below is the correct syntax for an empty element:
Listing 4 . Question 44. |
---|
<image file="my_picture.jpg" width="400" height="200"/> |
True or False: The syntax shown in Listing 5 below is the correct syntax for an empty element:
Listing 5 . Question 45. |
---|
<image file="my_picture.jpg"></image> |
True or False: The correct syntax for an XML comment is shown in Listing 6 below:
Listing 6 . Question 46. |
---|
<?This is a comment?> |
True or False: Comments may be nested.
True or False: XML has the five predefined entities shown in Listing 7 below:
Listing 7 . Question 48. |
---|
& represents an ampersand< represents a left angle bracket> represents a right angle bracket" represents a double quotation mark' represents a single quotation mark or apostrophe |
True or False: The CDATA syntax shown in Listing 8 below can be used to cause the XML processor to ignore angle brackets, ampersands, and other characters that mightotherwise be interpreted as XML control characters:
Listing 8 . Question 49. |
---|
True or False: CDATA sections can be nested.
What is the meaning of the following two images?
These images were inserted here simply to insert some space between the questions and the answers to keep them from being visible on the screen at thesame time.
This image was also inserted for the purpose of inserting space between the questions and the answers.
False
Explanation: Goldberg page 15
False
There is a syntax error in the xml code. The word CDATA should be followed by a left square bracket as in ...[CDATA[
Otherwise the answer would be True because that is the purpose of the CDATA syntax.
Explanation: Goldberg page 15
True
Explanation: Goldberg page 14
False
Explanation: Comments may not be nested. Goldberg page 13
False
Explanation: The correct syntax for a comment is shown in Listing 9 below. Goldberg page 13
Listing 9 . Answer 46. |
---|
<!--This is a comment--> |
True
Explanation: This is not the only correct syntax for an empty element. Goldberg page 12
True
Explanation: This is not the only correct syntax for an empty element. Goldberg page 12
True
Explanation: Goldberg page 12
True
Explanation: Goldberg page 12
False
Explanation: Attribute values must be in quotes. They can be either single or double quotes as long as they match within a single attribute.Goldberg page 11
Notification Switch
Would you like to follow the 'Introduction to xml' conversation and receive update notifications?