200-301 · Question #376
Refer to the exhibit. What is represented by "R1" and "SW1" within the JSON output?
The correct answer is C. value. In JSON output, 'R1' and 'SW1' represent string literals that serve as values within key-value pairs or elements within an array.
Question
Exhibits
Options
- Akey
- Barray
- Cvalue
- Dobject
How the community answered
(40 responses)- A3% (1)
- B3% (1)
- C88% (35)
- D8% (3)
Why each option
In JSON output, 'R1' and 'SW1' represent string literals that serve as values within key-value pairs or elements within an array.
A key in JSON is the descriptive label that identifies the data field (e.g., 'device' or 'name'), not the data itself like 'R1' or 'SW1'.
In JSON, data is structured as key-value pairs, where 'R1' or 'SW1' would typically be the 'value' associated with a specific 'key' (e.g., "device": "R1"), or they could be elements in an array of values (e.g., ["R1", "R2"]).
Concept tested: JSON data structure (values)
Source: https://www.json.org/json-en.html
Topics
Community Discussion
No community discussion yet for this question.

