exam questions

Exam 300-615 All Questions

View all questions & answers for the 300-615 exam

Exam 300-615 topic 1 question 178 discussion

Actual exam question from Cisco's 300-615
Question #: 178
Topic #: 1
[All 300-615 Questions]



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?

  • A. print ('Show VPC On Switch', [i] + 1, '\n') on line 5
  • B. print ('Show VPC On Switch', i + 2, '\n') on line 5
  • C. for i in range(1,3): on line 4
  • D. for i in range(1-2): on line 4
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
paradigm88
10 months, 1 week ago
for i in range(1,3): print('Hello world', i, '\n') Hello world 1 Hello world 2
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago