QuestionQ144

Understanding and Using APIs

Question Image

Refer to the exhibit. An engineer compares two files using unified diff format. What is determined by the content of the file2.py file?

  • A Line 93 of file.py is ‘DEVICE-STATS’.
  • B Line 92 of file2.py is ‘DEVICE-STATS’.
  • C Line 16 of file2.py is auth=HTTPBasicAuth(USERNAME, PASSWORD).
  • D Line 17 of file2.py is auth = HTTPBasicAuth(USERNAME, PASSWORD).
Explanation

Unified-diff hunk ranges identify old-file line numbers before the - sign and new-file line numbers after the + sign. In the -14,7 +14,7 hunk, the removed authentication argument is line 16 of file2.py and is auth=HTTPBasicAuth(USERNAME, PASSWORD),; the replacement in file1.py is auth=auth,.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!