Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 305
What is used in JSON to represent a Python tuple?
Answer options
- A. collection
- B. object
- C. array
- D. dict
Correct answer: C
Explanation
The correct answer is C, as JSON arrays can represent ordered collections similar to Python tuples. Options A (collection) and D (dict) are not valid JSON structures for tuples, while B (object) represents key-value pairs rather than an ordered list.