Search Header Logo
flashcard - 7(exceptions and file handling)

flashcard - 7(exceptions and file handling)

Assessment

Flashcard

Other

12th Grade - University

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

9 questions

Show all answers

1.

FLASHCARD QUESTION

Front

output?

Media Image

Back

hi An exception occurred

2.

FLASHCARD QUESTION

Front

What is the output? Options: Something went wrong, Finally print this, Something went wrong, Nothing went wrong, Finally print this, Finally print this

Media Image

Back

Something went wrong
Finally print this

3.

FLASHCARD QUESTION

Front

What is the output? Options: 50, 0, error

Media Image

Back

error

4.

FLASHCARD QUESTION

Front

What is the output when attempting to divide by 0?

Media Image

Back

numbers can not divide by 0

5.

FLASHCARD QUESTION

Front

What is the output when dividing numbers by 0?

Media Image

Back

numbers can not divide by 0, no errors

6.

FLASHCARD QUESTION

Front

What is the output? Options: hi, hi bye hi bye, bye bye hi bye

Media Image

Back

bye bye hi bye

7.

FLASHCARD QUESTION

Front

we want to write something in test.txt file. what is the correct syntax? Options: f = open("test.txt", "w"), f = open("test.txt"), f = open("test.txt", "r")

Back

f = open("test.txt", "w")

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?