0 of 1 Questions completed
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 1 Questions answered correctly
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Consider the following code snippet:
def read_first_line(path): file = None first_line = None try: file = open(path) first_line = file.readline() except FileNotFoundError as e: print('Error reading from "' + path + '". Message = "' + e.strerror + '"') finally: if file is not None: try: file.close() except: pass return first_line
Select the statements that are correct if the open() function throws a FileNotFoundError exception.
(Select all acceptable answers.)