exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 204 discussion

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


Refer to the exhibit. The output of the diff -u README.md-repo README.md command is shown. The original file was 165 lines long. How many lines are in the edited copy of the file?

  • A. 162
  • B. 165
  • C. 172
  • D. 173
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
designated
Highly Voted 3 years, 2 months ago
Selected Answer: C
It should be C (172)" Ln 3 88,8 means: "the original file, starting on line 88, had 8 lines before this diff was applied." Ln 3 88,6 means: "the modified/new file, starting on line 88, has 6 lines after this diff is applied." > less 2 lines = 165-2 = 163 lines Ln 9 -162,4 +160,13 indicates that the following information shows the original file, starting on line 162, had 4 lines of code, and the modified/new file, starting on line 160, has 13 lines of code > more 9 lines (13-4=9) so 163 + 9 = 172
upvoted 17 times
...
st1a
Most Recent 8 months, 2 weeks ago
2 -'s and 9+'s 165-2+9=172
upvoted 2 times
...
macxsz
2 years, 10 months ago
Selected Answer: C
172 considering readme.md is the copy
upvoted 4 times
...
sucre1
3 years, 3 months ago
$wc -l list* 165 list 172 list2 337 total $diff -u list list2 --- list 2022-02-04 12:44:04.000000000 +0900 +++ list2 2022-02-04 12:43:59.000000000 +0900 @@ -88,8 +88,6 @@ 88 89 90 -91 -92 93 94 95 @@ -162,4 +160,13 @@ 162 163 164 +1 +2 +3 +4 +5 +6 +7 +8 +9 165 $
upvoted 4 times
...
MajP
3 years, 3 months ago
I don't see how this answer is C. Original File is 165. First diff New file is missing 2 lines so it is at 163 Second diff New file has 9 new lines so it is at 172 What am I getting wrong here?
upvoted 2 times
MajP
3 years, 3 months ago
I mean I don't see how it's not C.
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago