Trace the Code
Loop Logic
If/Else Reasoning
Debug The idea
Vocabulary & Concepts
100

What will be the value of x after the following code runs?

x = 10

x = x + 5


What is 15?

100

What is the output of the following code? 

for i in range(3):

    print(i)


What is 0, 1, and 2?

100

What is printed?  

x = 10

if x > 5:

    print("Yes")

else:

    print("No")


What is “Yes”?

100

What is wrong with this code? 

print "Hello"


What is a missing parentheses in the print statement?


100

What is a variable?

 What is a storage name that holds data a program can use and change?


200

What will be the value of y after the following code runs?

y = 3

y += 2

y *= 2


What is 12?

200

How many times does the loop run in this code? 

for i in range(2, 6):

    print(i)


What is 4?

200

What is Printed? 

x = 4

if x % 2 == 0:

    print("Even")

else:

    print("Odd")


What is “Even”?

200

Why doesn’t this code work? 

if x = 5:

    print("Yes")


What is “using = instead of == for comparison in an if statement”?


200

What does a loop do in a program?

What is a loop repeats a block of code multiple times?


300

What will the value of num after the following code runs?

num = 5

num = num * 2

num = num - 3


What is 8?

300

What will this code output?

x = 0

while x < 5:

    print(x)

    x += 1


What is 0, 1, 2, 3, and 4?

300

What is Printed? 

score = 85

if score >= 90:

    print("A")

elif score >= 80:

    print("B")

else:

    print("C")


What is “B”?

300

What needs to be fixed? 

for i in range(5)

    print(i)


What is “the for loop is missing a colon at the end”?


300

What is the difference between = and ==?


 What is = assigns a value to a variable, while == checks if two values are equal?


M
e
n
u