-
ICT Computing Grade 6/7
-
ICT Computing Grade 6/7 Variables
-
Age 13+
-
level: 6
-
English
Author's Instructions
Is a variable in programming used to store information?
- Yes
- No
What does a variable in programming represent?
- A command to the computer to perform an action
- A storage location in memory for data
- A type of error in coding
When you create a variable in Python, like age = 10, the number 10 is stored in the ________ for later use.
- Internet
- User interface
- Computer's memory
You have a variable favorite_food in your Python program. If you want to change the value stored in favorite_food from 'pizza' to 'pasta', what line of code should you write?
favorite_food = 'pasta'change favorite_food to 'pasta'favorite_food stores 'pasta'
-
ICT Computing Grade 6/7
-
ICT Computing Grade 6/7 Variables
-
Age 13+
-
level: 6
-
English
Author's Instructions
Is a variable in programming used to store information?
- Yes
- No
What does a variable in programming represent?
- A command to the computer to perform an action
- A storage location in memory for data
- A type of error in coding
When you create a variable in Python, like age = 10, the number 10 is stored in the ________ for later use.
- Internet
- User interface
- Computer's memory
You have a variable favorite_food in your Python program. If you want to change the value stored in favorite_food from 'pizza' to 'pasta', what line of code should you write?
favorite_food = 'pasta'change favorite_food to 'pasta'favorite_food stores 'pasta'
