What is a variable?
A named container that stores data you can change or reuse.
What is a data type?
A category that tells the computer what kind of value something is (text, number, true/false, etc).
Name 4 common data types.
String (text), Integer (whole number), Float (decimal number), Boolean (true/false).
What is a string?
Text inside quotes, like “hello”.
What is a boolean?
A value that is either true or false.
What is an operator?
A symbol that performs an action, like + - * / = > <.
What does = do in programming?
Assigns a value to a variable.
What does == do in programming?
Checks if two values are equal.
What is control flow?
The order in which code runs.
What does an if statement do?
Runs code only if a condition is true.
What does else do?
Runs code when the if condition is false.
What is a loop?
A way to repeat code multiple times automatically.
Name two common types of loops.
for loops and while loops.
When would you use a loop?
When you want to repeat actions without writing them over and over.
What is a function?
A reusable block of code that does a specific task.
What are parameters in a function?
Inputs the function receives to work with.
What is a return value in a function?
The output the function sends back after running.
Can a function exist without returning a value?
Yes, not all functions return something.
What is a comment in code?
Notes for humans that the computer ignores.
Why use comments?
To explain code so it’s easier to understand later.
What is pseudocode?
Writing out logic in plain language before coding.
Does pseudocode run in a program?
No, it’s for planning, not execution.
Why is pseudocode useful?
It helps you think through problems without getting stuck on syntax.
What is debugging?
Finding and fixing errors in code.