Search Header Logo

Basic Python Bug Squashing

Authored by James Abela

Computers

9th Grade

Used 7+ times

Basic Python Bug Squashing
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

Which is bug free?

print(str(5+2))

print(str(5+2)

print(str5+2))

print(5+"2")

Answer explanation

You can't mix strings and numbers with a +

2.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

Fill in the gap: my_num = (a)   (input("Enter number"))

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

# What should go here?

print("Hello",name)

names = input("Your name?")

nama = "James"

name = input("Your name?")

James = name

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be output? print(14%12)

7

26

2

error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be printed. print(20//3)

6.666666666666667

6

7

error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be printed. print(20/3)

6.666666666666667

6

7

error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

print("20"//"3")

6.666666666666667

6

7

error

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?