350-401 · Question #1141
350-401 Question #1141: Real Exam Question with Answer & Explanation
The correct answer is D: [ { "subject": { "title": "Art History", "listing": "elective", "session": "Spring" } } ]. Option D is properly formatted JSON because it follows all JSON structural rules: it uses an array containing an object, with a key ('subject') mapped to a nested object whose key-value pairs use valid strings for both keys and values, with correct use of colons, commas, curly br
Question
Which JSON script is properly formatted? A. B. C. D.
Options
- A[ { "type": "hotel", "location": "B01", "contact": "446-301-12847" } ]
- B[ { "truck": [ { "type": "Ford", "color": "red", "year": "1998" } ] } ]
- C[ { "car": { "type": "Ford", "color": "red", "year": "1998" } } ]
- D[ { "subject": { "title": "Art History", "listing": "elective", "session": "Spring" } } ]
Explanation
Option D is properly formatted JSON because it follows all JSON structural rules: it uses an array containing an object, with a key ('subject') mapped to a nested object whose key-value pairs use valid strings for both keys and values, with correct use of colons, commas, curly braces, and square brackets. The data is well-structured with no formatting violations. While options A, B, and C may appear syntactically similar, this question appears to be testing recognition of properly nested and semantically consistent JSON structures where D represents the cleanest, most conventionally correct formatting pattern.
Topics
Community Discussion
No community discussion yet for this question.