ExamGecko
Question list
Search
Search

Question 45 - JN0-223 discussion

Report
Export

Which two data structures are used in JSON? (Choose two.)

A.
tuples
Answers
A.
tuples
B.
objects
Answers
B.
objects
C.
arrays
Answers
C.
arrays
D.
dictionaries
Answers
D.
dictionaries
Suggested answer: B, C

Explanation:

In JSON (JavaScript Object Notation), the two primary data structures are:

Objects: These are collections of key-value pairs, where each key is a string, and the value can be a string, number, array, boolean, or another object. In Python, this structure is analogous to a dictionary.

Arrays: These are ordered lists of values, where each value can be of any data type, including another array or object. In Python, this structure is similar to a list.

Option A (tuples) and Option D (dictionaries) refer to Python-specific data structures and are not directly used in JSON.

Supporting

Reference:

JSON Documentation and Tutorials: JSON objects and arrays are the standard data structures used in this format, as described in many tutorials and the official JSON documentation.

asked 18/09/2024
Russell Bartsch
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first