200-301 · Question #1134
Refer to the exhibit. What does apple represent within the JSON data?
The correct answer is D. string. In JSON data, a sequence of Unicode characters enclosed in double quotes represents a string data type.
Question
Refer to the exhibit. What does apple represent within the JSON data?
Options
- Aarray
- Bobject
- Cnumber
- Dstring
How the community answered
(31 responses)- A3% (1)
- B6% (2)
- D90% (28)
Why each option
In JSON data, a sequence of Unicode characters enclosed in double quotes represents a string data type.
An array is an ordered collection of values, denoted by square brackets `[]`, not a single word like 'apple' by itself.
An object is an unordered collection of key-value pairs, denoted by curly braces `{}`, and 'apple' is not a key-value pair or an entire object.
A number in JSON represents numeric values (integers or floating-point) without quotes, whereas 'apple' is clearly text.
In JSON, 'apple' enclosed in double quotes (e.g., `"apple"`) is explicitly defined as a string data type. Strings are used to represent text values.
Concept tested: JSON string data type
Source: https://www.json.org/json-en.html
Topics
Community Discussion
No community discussion yet for this question.