nerdexam
Cisco

350-401 · Question #1126

Refer to the exhibit. What is achieved by this Python script?

The correct answer is D. It reads JSON data into a formatted list.. A Python script that processes JSON data typically uses the json module to parse it, converting JSON objects into Python dictionaries and JSON arrays into Python lists for structured manipulation.

Submitted by tunde_lagos· Mar 6, 2026Automation

Question

Refer to the exhibit. What is achieved by this Python script?

Exhibits

350-401 question #1126 exhibit 1
350-401 question #1126 exhibit 2

Options

  • AIt loads JSON data into an HTTP request.
  • BIt converts JSON data to an HTML document.
  • CIt counts JSON data from a website.
  • DIt reads JSON data into a formatted list.

How the community answered

(52 responses)
  • B
    4% (2)
  • C
    2% (1)
  • D
    94% (49)

Why each option

A Python script that processes JSON data typically uses the `json` module to parse it, converting JSON objects into Python dictionaries and JSON arrays into Python lists for structured manipulation.

AIt loads JSON data into an HTTP request.

While Python can prepare JSON for HTTP requests using `json.dumps()`, the phrase 'reads JSON data' implies parsing incoming data, not formatting outgoing data for a request body.

BIt converts JSON data to an HTML document.

Converting JSON data directly into an HTML document requires dedicated templating or rendering logic beyond standard JSON parsing functions in Python.

CIt counts JSON data from a website.

Counting specific elements within JSON data is a subsequent analytical step performed after the JSON data has already been read and parsed into Python data structures, rather than being the primary action of 'reading JSON data'.

DIt reads JSON data into a formatted list.Correct

A typical Python script for processing JSON data employs the `json` module's parsing functions (like `json.loads()` or `json.load()`) to convert JSON strings or files into native Python data structures, such as dictionaries and lists, making the data accessible and 'formatted' for Python manipulation.

Concept tested: Python JSON parsing (json.load/loads)

Source: https://docs.python.org/3/library/json.html

Topics

#Python JSON parsing#Data serialization#Python data structures

Community Discussion

No community discussion yet for this question.

Full 350-401 Practice