nerdexam
CiscoCisco

350-401 · Question #1126

350-401 Question #1126: Real Exam Question with Answer & Explanation

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?

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.

Explanation

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.

Common mistakes.

  • A. 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.
  • B. Converting JSON data directly into an HTML document requires dedicated templating or rendering logic beyond standard JSON parsing functions in Python.
  • C. 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'.

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

Reference. 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 PracticeBrowse All 350-401 Questions