Search Header Logo

06 File and Exception

Authored by Mike Kok

Computers

12th Grade

Used 2+ times

06 File and Exception
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

41 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True/False: If a file with the specified name already exists when the file is opened and the file is opened in 'w' mode, then an alert will appear on the screen.

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True/False: When a piece of data is read from a file, it is copied from the file into the program.

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True/False: Closing a file disconnects the communication between the file and the program.

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True/False: In Python, there is nothing that can be done if the program tries to access a file to read that does not exist.

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True/False: Python allows the programmer to work with text and number files.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True/False: The ZeroDivisionError exception is raised when the program attempts to perform the calculation x/y if y = 0.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True/False: An exception handler is a piece of code that is written using the try/except statement.

True

False

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?