nerdexam
Cisco

300-615 · Question #206

Refer to the exhibit. A network engineer must display the status of the vPC domain using the Python script and guest shell. The status of Cisco Nexus switches 1 and 2 must be displayed, but the code…

The correct answer is C. for i in range(1,3): on line 4. See the full explanation below for the reasoning.

Question

Refer to the exhibit. A network engineer must display the status of the vPC domain using the Python script and guest shell. The status of Cisco Nexus switches 1 and 2 must be displayed, but the code fails and displays the status of Cisco Nexus switches 0 and 1 instead. Which code resolves the issue?

Exhibits

300-615 question #206 exhibit 1
300-615 question #206 exhibit 2

Options

  • Aprint ('Show VPC On Switch', [i] + 1, '\n') on line 5
  • Bprint ('Show VPC On Switch', i + 2, '\n') on line 5
  • Cfor i in range(1,3): on line 4
  • Dfor i in range(1-2): on line 4

How the community answered

(29 responses)
  • A
    7% (2)
  • B
    17% (5)
  • C
    72% (21)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 300-615 Practice