Search Header Logo

Python Functions and Exceptions

Authored by Christine Garnett

Computers

9th - 12th Grade

Used 203+ times

Python Functions and Exceptions
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

12

code

codecodecode

nothing

error

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Tracy

hello Turtle

hello Tracy

none of these

Turtle

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

nothing

<>

3

<><><>

<><><><>

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

12

24

50

66

none of these

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the purpose of an exception?

To indicate that something has gone wrong, and the program does not know how to continue

To point out when the programmer has written exceptionally good code

To tell the user that he/she has given bad data, such as a negative number instead of a positive number

To allow the programmer to write bad code, but have it still work

none of these

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Four

5

3.0

*

None of these

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

A

B

C

D

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?