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} | AThe number 88 and the boolean true are wrapped in quotes, so they are stored as strings rather than a number and a boolean | |
| 2["Maths", "English", "Science"] | BJSON keys and strings must use double quotes, not single quotes | |
| 3Numbers, booleans and null are written without quotes, while strings need double quotes | C{"age": 17, "active": true, "phone": null} | |
| 4Values can be nested: an object can hold an array, and an array can hold objects | D{"students": [{"name": "Zoe"}, {"name": "Leo"}]} | |
| 5{'name': 'Ava'} | EA JSON array: square brackets hold an ordered list of values separated by commas | |
| 6{"id": 1, "score": "88", "pass": "true"} | FA JSON object: curly braces hold key-value pairs, with double-quoted keys and strings, separated by commas |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
JSON object and array — JSON stores data as key-value pairs inside {} objects and as ordered lists of values inside [] arrays. Keys are double-quoted strings. Values can be nested.{"name": "Ava", "year": 12}{"scores": [88, 74, 91]}{"age": 17, "isAdult": false}{"name": "Zoe", "middleName": null}{"pet": {"name": "Rex", "age": 3}}