Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1<student><name>Mia</name></student> | AThe student element is never closed, so the XML is not well-formed. It needs a closing </student> tag. | |
| 2<student id="7"> | BThe tags overlap. The name element must be closed before its parent student is closed, so the tags are not properly nested. | |
| 3Every element needs an opening tag and a matching closing tag with a forward slash | C<name>Mia</name> | |
| 4A well-formed XML file has one root element that contains all the other elements | D<students><student><name>Mia</name></student></students> | |
| 5<student><name>Mia</student></name> | EAn opening tag with an attribute named id that has the value 7 | |
| 6<student><name>Mia</name> | FA student element with a child element name nested inside it, holding the data Mia |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
<student><name>Mia</name></student> — XML stores data in nested, named elements. Each element has an opening and closing tag, and child elements sit inside a root element. The tags describe the data.<name>Mia</name><students>
<student>Mia</student>
</students><student><name>Mia</name></student><student id="1"><name>Mia</name></student><student id="1"><name>Mia</name></student>