Search Header Logo

Python L24 Debugging Skill

Authored by Future Teacher

Computers

6th - 8th Grade

Used 1+ times

Python L24 Debugging Skill
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the main issue in the following code?

Missing colon

Wrong function name

Indentation error

Syntax error due to print

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will this print?

Looping!
Looping!
Looping!

i

i

i

Looping!

Looping!

Looping!

Looping!

Looping!

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Using == assigns a value to a variable in Python.

True

False

Answer explanation

= is to assign variable

== is for comparison

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Pick the correct code without bugs.

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What’s the bug?

Missing quotation mark

Missing closing parenthesis )

Variable not defined

Variable not defined

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What's wrong here?

range(5) is not valid

Missing colon : after for

Incorrect indentation

Wrong loop type

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What error will this cause?

SyntaxError

ValueError

IndexError

TypeError

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?