Basic Python Bug Squashing

Basic Python Bug Squashing

9th Grade

11 Qs

quiz-placeholder

Similar activities

Python Intro

Python Intro

8th - 9th Grade

10 Qs

year 8 lesson 2 quiz - python

year 8 lesson 2 quiz - python

8th - 10th Grade

14 Qs

ASK F2 -KOD ARAHAN (PYTHON)

ASK F2 -KOD ARAHAN (PYTHON)

1st Grade - University

15 Qs

Python - Variables and Input

Python - Variables and Input

1st - 10th Grade

16 Qs

Intermediate Python

Intermediate Python

9th - 11th Grade

15 Qs

Python

Python

9th - 12th Grade

16 Qs

Python Quiz  -  5

Python Quiz - 5

4th - 11th Grade

10 Qs

Variables and Data Types Knowledge Check

Variables and Data Types Knowledge Check

9th - 12th Grade

16 Qs

Basic Python Bug Squashing

Basic Python Bug Squashing

Assessment

Quiz

Computers

9th Grade

Hard

Created by

James Abela

Used 7+ times

FREE Resource

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 BLANK QUESTION

1 min • 1 pt

Fill in the gap: my_num = ___(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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?