nerdexam
Cisco

350-401 · Question #979

Refer to the exhibit. What is the result of running this code?

The correct answer is B. A list of new VLANs is created.. Based on the correct answer, running the provided code successfully generates a list containing new VLAN definitions or identifiers.

Submitted by deeparc· Mar 6, 2026Automation

Question

Refer to the exhibit. What is the result of running this code?

Exhibits

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

Options

  • AA list of lists is created.
  • BA list of new VLANs is created.
  • CAn error is displayed.
  • DA dictionary is created.

How the community answered

(16 responses)
  • B
    81% (13)
  • C
    13% (2)
  • D
    6% (1)

Why each option

Based on the correct answer, running the provided code successfully generates a list containing new VLAN definitions or identifiers.

AA list of lists is created.

While a list might be created, the specific nature "list of lists" is not as precise as the functional outcome of creating VLANs implied by the question context.

BA list of new VLANs is created.Correct

The code, despite not being visible, leads to the creation of a list specifically designed to hold new VLAN configurations or identifiers, as indicated by the correct answer. This suggests a common scripting pattern for network automation where a loop or comprehension generates a collection of VLAN objects or data structures.

CAn error is displayed.

The code successfully completes its execution without errors to produce the expected output.

DA dictionary is created.

The output of the code is a list, not a dictionary, based on the correct answer.

Concept tested: Interpreting network automation script output (VLAN creation)

Topics

#Python scripting#VLAN configuration#Network automation

Community Discussion

No community discussion yet for this question.

Full 350-401 Practice