Recall & Review
beginner
What is a variable in programming?
A variable is a name that stores a value so you can use or change it later in your program.
Click to reveal answer
beginner
Why do we need variables instead of just using values directly?
Variables let us reuse values, change them easily, and keep our code organized and readable.Click to reveal answer
beginner
How do variables help when you want to update a value multiple times?
Variables let you store a value once and then update it anytime without changing the whole code everywhere.Click to reveal answer
beginner
Give a real-life example of why variables are useful.
Like a labeled jar for cookies: you can put cookies in, take some out, or add more without mixing them up. Variables label data in code.
Click to reveal answer
beginner
What happens if you don’t use variables and repeat the same value many times?
Your code becomes hard to change and understand because you must update every place the value appears.
Click to reveal answer
Why do programmers use variables?
✗ Incorrect
Variables store values so you can reuse and change them easily.
What is a benefit of using variables instead of repeating values?
✗ Incorrect
Variables let you update a value once instead of many times.
If you want to change a number used many times in your code, what should you do?
✗ Incorrect
Using a variable lets you change the value once and it updates everywhere.
Which of these is NOT a reason to use variables?
✗ Incorrect
Variables make code easier to change, not impossible.
What does a variable do in a program?
✗ Incorrect
A variable stores a value so the program can use it later.
Explain in your own words why variables are important in programming.
Think about how you would keep track of something you use many times.
You got /4 concepts.
Describe a real-life example that helps you understand why variables are needed.
Think about jars, boxes, or folders you use daily.
You got /4 concepts.