Font size
WorksheetsInput Outputs Microbit
Total questions: 90
Worksheet time: 1hrs 4mins
When will this piece of code start?
When you shake the MicroBit
When you turn on the MicroBit
When you press the A button on the MicroBit
When will this piece of code start?
When you shake the MicroBit
When you turn on the MicroBit
When you press the A and B buttons on the MicroBit
What will this code do?
Display the numbers 1 to 6
Display a number between 1 and 6
Which part of the MicroBit is the B Button?
1
2
3
4
What is meant by the term String in programming?
Letters, numbers and symbols
Numbers Only
Words Only
Symbols Only
What would be outputted here?
Tick
Cross
Smiley face
What would the output be?
7
14
11
10
What's the answer?
(a)
Type in the 2 program outputs, leave a space between and use lower case.
(a)
The LED doesn't flash. What is the problem?
It's not turned on
It's turned on, but not turned off
The pins are incorrect
It won't work on start
The LED comes on for a split second and goes off. Why doesn't it flash?
The pins are incorrect
Pin 1 doesn't come on
There's no loop
Both pins need to be set to 1
On button B pressed, LED should go off. This isn't happening. Why?
The pins aren't set to 0
Button B isn't selected
It's in a loop
The wrong pin is set
At the start of this program it says increase, immediately! How do I get it to say 'decrease'
Increase the variable by 2
Decrease the variable by 1
Change the variable at the top
My program never gets above 5? How do I change it so the variable increases each round?
Add more to the variable
Take the top variable out of the loop
Increase random number
Lower the variables value
What's the lowest and highest score possible on 1 loop?
2 and 4
1 and 3
4 and 5
2 and 5
I want to output the length of the list. There's a error?
List has letters in it
Button A shouldn't be pressed
Variable is the wrong name
The list isn't set on start
What's going to be the output?
1
2
3
4
5
Lists start with a 0 index. What would be the output?
a
b
c
d
e
What's the output?
A
B
C
Where is the error in this code?
shouldn't begin on 0 when it starts
The variable
It will not print to screen
Program will not run
What commands are in this code?
Input/process/output
Process/input
Variable and a process
Input and output
What line is the loop in?
Line 1
Line 2
Line 3
Line 4
How many times does a variable appear in this code?
1 time
2 times
3 times
4 times
What happens here?
If the number is > 2 it will output the points
If the number is > 2 it will output 'Incorrect'
If the number is < 2 it will output 'Incorrect'
If the number is = 2 it will output the points
If/else is?
An input
A selection
A sequence
An iteration
How many times does an output appear here?
once
Twice
Three times
None
Within this loop how many times does a process happen?
One time
Two times
Three times
Four times
What will be the output if I ONLY press button b
100
0
50
400
After button a is pressed, then button b. What is the output
100
0
16
400
What's the answer?
250
500
268
125
What's the answer?
35
2
70
75
What's the answer?
5
15
25
10
What will happen here?
If a random number > 5 is picked 6 is outputted
If a random number > 5 is picked 4 is outputted
If a random number > 5 is picked 2 is outputted
If a random number < 5 is picked 6 is outputted
What number will be outputted?
1
2
3
4
5
What happens here?
Orange is removed from the list and 5 is outputted
Grapes is removed from the list and 5 is outputted
Grapes is removed from the list and 4 is outputted
Orange is removed from the list and 4 is outputted
What happens here?
Tangerine is inserted between banana and pear
Tangerine is inserted between grapes and pear
Tangerine is inserted between grapes and orange
Tangerine is inserted between apple and banana
Removes apple and outputs 5
Removes pear and outputs 4
Removes orange and outputs 4
Removes grape and outputs 5
Which of the following are inputs on the micro:bit?
(hint: you need to select ALL of the relevant inputs to get this question correct)
LEDs
Buttons
Light sensor
GPIO pins
Accelerometer
Which of the following are outputs on the micro:bit?
(hint: you need to select ALL the devices that can be used to output (some are both input and output devices...)
LEDs
Buttons
Light sensor
GPIO pins
Accelerometer
How often will the message "Hello Year 7" be displayed?
All the time
Once
When will this piece of code start?
When you shake the MicroBit
When you turn on the MicroBit
When you press the A button on the MicroBit
When will this piece of code start?
When you shake the MicroBit
When you turn on the MicroBit
When you press the A and B buttons on the MicroBit
What will happen on the Microbit when this code is run?
When button A is pressed it will display a sun on the LED display
When the light level is more than 100 it will display a sun on the LED display
When the light level is exactly 100 it will not show a sun
What will happen when you press the A button?
score will go up by 1
score will go down by 1
Nothing will happen
On the Microbit what is the accelerometer used for?
Input
Output
Both input and output
On the Microbit what is the compass used for?
Input
Output
Both input and output
On the Microbit what is the temperature sensor used for?
Input
Output
Both input and output
On the Microbit what is the light sensor used for?
Input
Output
Both input and output
On the Microbit what is the LED display used for?
Input
Output
Both input and output
The Microbit has the ability to communicate with other devices
True
False
What line is the loop in?
Line 1
Line 2
Line 3
Line 4
What's happening here?
The program will count to 10 and show an output
The program will count to 9 and show an output
The program will count to 11 and show an output
The program will not run
Which row is the selection command in?
Row 2
Row 3
Row 5
Row 6
The 'while true' block acts as a?
Repeat a number of times block
Forever block while True/False
For block
What happens here?
If number is smaller a cross is shown
If number is smaller a heart is shown
If number 1 is bigger a cross is shown
What line is the operator on?
Line 1
Line 2
Line 3
Line 4
How many times will a random number appear followed by a letter B?
Once
Twice
Three times
Four times
How many lines hold the variable?
1
2
3
4
What happens when button A is pressed?
It returns 1
It returns 2
It returns 3
It returns 4
What happens when button B is pressed?
It returns banana then shows number 3
It returns carrot and shows number 2
It returns apple and shows number 1
What is 'list' in this program?
A process
A variable
An input
An output
What would the output be?
r
q
There would be an error
What would be the output?
q
r
There would be a data error
What happens here?
the random number is higher than 4 the output is 2
If the random number is higher than 4 the output is 4
the random number is higher than 4 the output is 6
What happens when button A is pressed?
Pin goes off and the cross clears
Pin is on and the cross is active until button B is pressed
Pin is on and the cross is active is on for 10 seconds
What happens here?
Pins come on and tone is played 10 times
Pins go off and tone is played 10 times
Pins come on and tone is played 11 times
What will be the value of the 'number' when printed?
96
28
32
104
What would the value of 'total' when printed?
87
27
37
25
Which code will allow you to loop your program?
On Start
Forever
On Button A
On Shake
Select an output?
Select an input?
What is a 'string'?
Whole numbers
Decimal numbers
Text
True or false
When will this piece of code start?
When you shake the MicroBit
When you turn on the MicroBit
When you press the A button on the MicroBit
When you press the B button on the MicroBit
When will this code stop?
When the A button is pressed
It won't!
When B button is pressed
When you shake it
What is the name of the variable in this code?
score
button A
Level 2
These blocks are known as
inputs
event handlers
variables
In this program, the block "score" is a/an
input
event handler
variable
This program uses ____ variables.
1
2
3
These blocks are located in the ___ drawer.
math
logic
variables
You can find these blocks in the ___ drawer
math
logic
basic
These blocks are found in the ____ drawer.
logic
variables
math
What block would make this program display the score?
Look at the diagram. Click on it to enlarge
What is the variable in the piece of code?
shake
Roll
pick random
else if
Look at the diagram. Click on it to enlarge
"if then"
"else if"
These are examples of selection. True or False
True
False
Look at the diagram. Click on it to enlarge
"pick random 1 to 6"
These are examples of selection. True or False
Picks the number 1
Picks any number between 1 and 6
Pick the number 6
