Posted by: Pdfprep
Post Date: October 29, 2020
This question requires that you evaluate the underlined text to determine if it is correct.
You write the following code:
The out.txt file does not exist. You run the code. The code will execute without error.
Review the underlined text. If it makes the statement correct, select “No change is needed”. If the statement is incorrect, select the answer choice that makes the statement correct.
A . No change is needed
B . The code runs, but generates a logic error
C . The code will generate a runtime error
D . The code will generate a syntax error
Answer: A
Explanation: https://docs.python.org/2/library/exceptions.html
Leave a Reply