Variables
Operators
Conditional Statements
While Loop
Random
100

What is a variable?

A name used to store a value.

100

What does + do?

Addition

100

What keyword is used to check a condition?

if

100

What is a loop?

A way to repeat instructions.

100

I have keys but no locks. I have space but no room. What am I?

Keyboard

200

What value is stored in a? 

a = 20

20

200

What does == mean?

Equal to

200

What is the purpose of else?

It runs when the if condition is false.

200

When does a while loop continue?

As long as its condition is true.

200

Name 3 computer devices in 5 seconds!

Any 3 valid devices

300

What does a = 10 mean?

The value 10 is assigned to a.

300

What is the difference between = and ==?

= assigns a value; == compares two values.

300

What will be printed?
a = 10
if a > 5:
 print("Yes")

Yes

300

What happens when the while condition becomes false?

loop stops.

300

A computer can understand Python directly without anything translating/interpreting the code.

True or False


False

400

What happens if we write a = 20 after a = 10?

The value of a becomes 20.

400

What does % give?

The remainder after division

400

Complete the condition:
if a ___ b:
to check if a is greater than b.

>

400

What can cause a while loop to become infinite?

Its condition never becomes false.

400

I can be on or off.
I can be clicked.
You see me on your computer screen.
What am I?

A button

500

What is the final value of a?
a = 10
a = 25
a = 40

40

500

What is the output?
print(10 + 6 * 2)

22

500

What will this print?
a = 8
if a > 10:
 print("Big")
else:
 print("Small")

Small

500

What is the output?
a = 3
while a > 0:
 print(a)
 a = a - 1

3, 2, 1

500

🐍 + 💻 + 🧠 = ❓

Python programming