Search Header Logo

quiz - 7(exceptions and file handling)

Authored by sasika roledenez

Other

12th Grade - University

Used 20+ times

quiz - 7(exceptions and file handling)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

output?

hi

bye

hi

An exception occurred

hi

bye

An exception occurred

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

output?

Something went wrong

Finally print this

Something went wrong

Nothing went wrong

Finally print this

Finally print this

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

output?

50

0

error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

output?

50

numbers can not divide by 0

error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

output?

error

numbers can not divide by 0

numbers can not divide by 0

no errors

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

output?

hi

hi

bye

hi

bye

bye

bye

hi

bye

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

we want to write something in test.txt file. what is the correct syntax?

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

f = open("test.txt")

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

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?