0
0
Intro to Computingfundamentals~5 mins

Variables and data storage in Intro to Computing - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a variable in computing?
A variable is like a labeled box where you can store information. You can put data inside it, change it, and use it later in your program.
Click to reveal answer
beginner
Why do we use variables instead of writing values directly?
Variables let us reuse and change data easily without rewriting everything. It's like using a nickname instead of a full name every time.
Click to reveal answer
beginner
What types of data can variables store?
Variables can store numbers, words (text), true/false values, and more. Think of it like different kinds of items you can keep in boxes.
Click to reveal answer
intermediate
How does a computer remember the value stored in a variable?
The computer uses memory (like a big set of tiny boxes) to keep the value. The variable name is a label that points to the right box.
Click to reveal answer
beginner
What happens if you change the value of a variable?
The old value is replaced with the new one in the memory box. It's like erasing what was written on a whiteboard and writing something new.
Click to reveal answer
What is a variable best compared to in real life?
AA fixed number on a calculator
BA book with unchangeable pages
CA labeled box that holds items
DA locked safe you cannot open
Which of these can a variable NOT store?
AA physical object
BText
CTrue or False
DNumbers
What happens when you assign a new value to a variable?
AThe old value is kept and the new one is ignored
BThe old value is replaced by the new one
CThe variable creates a new box
DThe computer shuts down
Why do programmers use variables?
ATo store and reuse data easily
BTo make programs slower
CTo confuse the computer
DTo avoid using memory
In a computer, where is the data of a variable stored?
AIn the keyboard
BOn the internet
COn a paper note
DIn the computer's memory
Explain what a variable is and why it is useful in programming.
Think about how you store things in labeled containers at home.
You got /3 concepts.
    Describe how changing a variable's value works inside a computer.
    Imagine writing on a whiteboard and then erasing it to write something else.
    You got /3 concepts.