Compu-What?
Input/Output
True or False?
Loop It Up
Function Junction
100

What is a program?

A set of instructions a computer follows to perform a task.

100

What does input() return by default?

A string

100

What does == mean in Python?

It checks if two values are equal.

100

What is a while loop?

A loop that repeats while a condition is true

100

What is a function?

A block of code that performs a task

200

Name 3 hardware components

CPU, RAM, hard drive, monitor, keyboard, etc.

200

What does print("Hi", name) do?

Prints “Hi” followed by the value of the variable name

200

What is the output of if 5 > 3: followed by print("Yes")?

Yes

200

What does range(3) return?

[0, 1, 2]

200

What does return do?

Sends a value back to the caller

300

What’s the difference between RAM and secondary storage?

RAM is temporary memory; secondary storage is permanent

300

What does int(input("Age?")) do?

Prompts the user and converts the input to an integer

300

What’s the difference between = and ==?

= assigns a value; == compares values

300

What is an infinite loop?

A loop that never ends due to a condition that never becomes false

300

What’s the difference between a parameter and an argument?

A parameter is in the function definition; an argument is the value passed

400

What is an interpreter?

A program that translates and runs code line-by-line

400

What does print("5" + "3") output?

53 (string concatenation)

400

What does != mean? 

Not equal to

400

What’s the difference between for and while loops?

for is count-controlled; while is condition-controlled

400

What is a value-returning function?

A function that returns a value using return

500

What is machine language?

Binary code that the CPU can execute directly

500

What is string concatenation?

Joining strings using +, e.g., "Hello" + "World" → "HelloWorld"

500

What is a Boolean expression?

An expression that evaluates to True or False

500

What does break do in a loop?

It exits the loop immediately

500

Why use main() in a module?

To organize code and prevent it from running on import

M
e
n
u