nerdexam
Cisco

200-901 · Question #442

Refer to the exhibit. A developer got this output during the development of an application. Which action produces this output?

The correct answer is D. file comparison within the unified diff format. The exhibit shows unified diff format output, which represents file differences using '+' and '-' line prefixes along with hunk headers to indicate additions and deletions between two file versions.

Software Development and Design

Question

Refer to the exhibit. A developer got this output during the development of an application. Which action produces this output?

Exhibit

200-901 question #442 exhibit

Options

  • Aexecution of a Python script with numpy library
  • Benhancement to Python numpy library
  • Cupload of a script to a git repository
  • Dfile comparison within the unified diff format

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    4% (1)
  • D
    92% (24)

Why each option

The exhibit shows unified diff format output, which represents file differences using '+' and '-' line prefixes along with hunk headers to indicate additions and deletions between two file versions.

Aexecution of a Python script with numpy library

Executing a Python script with numpy produces numerical computation results or array output, not the structured +/- line comparison format shown in the exhibit.

Benhancement to Python numpy library

Enhancing a numpy library would produce build, compilation, or installation log output, not a unified diff file comparison.

Cupload of a script to a git repository

Uploading a script to a git repository produces git push confirmation and remote tracking messages, not a diff comparison of file contents.

Dfile comparison within the unified diff formatCorrect

The unified diff format - produced by 'diff -u' or tools such as git diff - displays file changes with a header identifying the source and target files, followed by hunk markers (@@) indicating line positions, where '-' prefixed lines were removed and '+' prefixed lines were added. This format is the standard for comparing two versions of a text file and is commonly seen in code review and version control workflows. The structured +/- output shown in the exhibit is the defining characteristic of unified diff, not of any Python execution or repository operation.

Concept tested: Unified diff format file comparison output

Source: https://www.gnu.org/software/diffutils/manual/diffutils.html#Unified-Format

Topics

#Diff format#File comparison#Developer tools#Version control

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice