micro:bit Variables
Quiz by Starter quizzes
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
8 questions
Show answers
- Q1What is a variable in micro:bit programming?A named storage location for data valuesA hardware component that displays outputA type of program loopA function that performs calculations30s
- Q2What is a valid variable name in micro:bit programming?MyVarmyVarmy varmy_var30s
- Q3What data types can be assigned to a variable in micro:bit programming?Numbers onlyNumbers, strings, and booleansStrings onlyBooleans only30s
- Q4What symbol is used to assign a value to a variable in micro:bit programming?=+:-30s
- Q5What is the scope of a variable in micro:bit programming?The area of the program where the variable can be accessedThe memory location of the variableThe type of data assigned to the variableThe time when the variable was created30s
- Q6What happens if a variable is not initialized with a value in micro:bit programming?It will have a default value of 'null'The program will crashIt will have a default value of 'undefined'It will have a default value of '0'30s
- Q7What is the difference between a local variable and a global variable in micro:bit programming?There is no difference between a local and global variable in micro:bit programmingA local variable is initialized with a value, while a global variable is notA global variable is only accessible within the function or block of code where it is defined, while a local variable can be accessed from anywhere in the programA local variable is only accessible within the function or block of code where it is defined, while a global variable can be accessed from anywhere in the program30s
- Q8What is the advantage of using variables in micro:bit programming?It improves the accuracy of program calculationsIt makes the code run fasterIt reduces the amount of memory used by the programIt makes the code more flexible and easier to maintain30s