exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 336 discussion

Actual exam question from Cisco's 200-901
Question #: 336
Topic #: 1
[All 200-901 Questions]



Refer to the exhibit. An engineer is comparing two files by using the unified diff format. Which cade snippet belongs to the new.py file?

  • A.
  • B.
  • C.
  • D.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
nospampls
Highly Voted 1 year, 10 months ago
Selected Answer: A
becouse of the line numbers i think A is right
upvoted 7 times
...
rtg2123
Highly Voted 1 year, 9 months ago
Selected Answer: A
Correct answer is A. And that is because of the line number which is present in front of the line( which represent the line number in the modified file(new.py), also the + from the diff shows which text is belonging to the last version of the file(new.py)) B is not correct because in the new file on line 21 it is "def print_devices" C is not correct because it was only present on the functions.py file and it was removed on the new. py, based on the diff command output. D is not correct because line 66 of the new.py file is "response=get_devices_list(geaders,{})"
upvoted 6 times
...
kymoni
Most Recent 8 months ago
Selected Answer: A
Answer A as already explained by rtg2123
upvoted 1 times
...
r3mo
1 year, 10 months ago
B is correct.
upvoted 1 times
petrus28
1 year, 8 months ago
B is incorrect since the code has: print(item['id'], item['hostname'] If you see, on both lines, both functions.py and new.py files have it. In order to be B, the answer should be: print(item['id'], item['hostname'])
upvoted 1 times
...
...
cerifyme85
1 year, 10 months ago
Selected Answer: B
B is the correct answer.. sorry guys.. answer option format a bit confusing
upvoted 2 times
...
cerifyme85
1 year, 11 months ago
Selected Answer: D
Answer is D
upvoted 1 times
cerifyme85
1 year, 10 months ago
I think B is correct
upvoted 1 times
cerifyme85
1 year, 10 months ago
My bad A..is correct
upvoted 3 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 ...