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{"name": "Ava", "year": 12} | AXML: opening and closing tags, with an attribute carrying extra information | |
| 2<student year="12"><name>Ava</name></student> | B<xs:element name="age" type="xs:integer"/> | |
| 3Both JSON and XML are self-describing: the field names travel with the data | CJSON: compact key-value pairs in braces, short and easy to read | |
| 4XML can be checked against a schema, so the receiver can confirm the structure is valid | D{"city": "Brisbane"} and <city>Brisbane</city> | |
| 5<name>Ava</nme> | EThe closing tag does not match the opening tag. XML needs every element closed with a matching tag. | |
| 6{name: 'Ava', year: 12,} | FJSON keys and strings need double quotes, and a trailing comma is not allowed. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
JSON vs XML — JSON is shorter and easier to read. XML uses tags and can carry attributes and schemas. Both are self-describing text formats for exchanging data between systems.<name>Ava</name>{"name": "Ava", "year": 12}<?xml version="1.0"?>{"marks": [88, 74, 91]}<xs:element name="age" type="xs:integer"/>