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} | AThere is no comma between the two key-value pairs, so the file is invalid and a program cannot read it. | |
| 2"students": [{"name": "Ava"}, {"name": "Liam"}] | BA JSON object: curly braces hold key-value pairs separated by commas | |
| 3JSON can nest one object inside another to group related data | C[{"item": "Pencil"}, {"item": "Notebook"}] | |
| 4JSON stores a list of records as an array of objects, while XML needs repeated opening and closing tags | D{"student": {"name": "Ava", "house": "Red"}} | |
| 5{name: "Ava", "year": 12} | EA key whose value is an array (list) of objects, written in square brackets | |
| 6{"name": "Ava" "year": 12} | FThe key name is not wrapped in double quotes. Every JSON key must be a double-quoted string. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
{"name": "Ava", "year": 12} — JSON stores data as key-value pairs inside curly braces, with lists in square brackets. Objects can nest inside each other, so programs can read it easily. It is a lighter alternative to XML.{"name": "Ava", "year": 12}{"name": "Ava", "year": 12}{"students": [
{"name": "Ava"},
{"name": "Liam"}]}{"name": "Ava",
"address": {"city": "Cairns"}}XML: <year>12</year>