ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 107 - 350-601 discussion

Report
Export

Which data structure results from running this Python code?

A.

tuple

Answers
A.

tuple

B.

dictionary

Answers
B.

dictionary

C.

set

Answers
C.

set

D.

list

Answers
D.

list

Suggested answer: B

Explanation:

The Python code snippet provided imports thejsonmodule and loads a JSON file into a variable namedvar1. Since JSON files inherently represent object data as dictionaries in Python, the resulting data structure is a dictionary. This is evident from the output shown, which displays a dictionary with nested dictionaries and lists, containing keys like 'bd', 'ap', 'name', etc., and corresponding values.

asked 10/10/2024
Rajeev R Kumar
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first