WorksheetsLesson six - Sensing
Total questions: 17
Worksheet time: 6mins
Name
Class
Date
1.
Using the flow diagram below, which object has not got an engine, but can fly?
a)
Aeroplane
b)
Hot Air Balloon
c)
Motorbike
d)
Bicycle
2.
What do you use the emulator for?
a)
To create the code for your program
b)
To test your program
c)
To download your program on to a micro:bit
3.
What is the name of the variable in the code snippet below?
a)
Shake
b)
String
c)
Answer
d)
Yes
4.
What is an algorithm in a design?
a)
The task that needs to be completed
b)
A set of clear and precise, ordered instructions
c)
The appearance of the project
d)
A diagram of the flow of the program
5.
What would be displayed on the LEDs if button A is pressed?
a)
A tick
b)
A cross
c)
A tick followed by a cross
6.
The image below is an example of...
a)
An algorithm
b)
Program flow
c)
Code
d)
Task
7.
Debugging is the process of finding and fixing errors.
a)
True
b)
False
8.
What text would be displayed if number 3 was generated?
a)
Yes
b)
No
c)
Maybe
9.
Which input devices have been introduced in lesson one? (tick 2)
a)
Buttons A and B
b)
The compass
c)
The accelerometer
d)
The light sensor
10.
Which of the following can be used to capture inputs on a micro:bit? (Choose 2)
a)
Buttons A and B
b)
LED Lights
c)
Accelerometer
d)
USB port
11.
If you're making a step counter, when should the variable 'step' be set?
a)
When the program starts
b)
Whilst the program is running
c)
When the program ends
12.
If the compass heading is 310, what will be displayed on the micro:bit?
a)
N
b)
E
c)
S
d)
W
13.
When do you flash a program?
a)
When you run the program on the device
b)
When you are adding the blocks to the coding area
c)
When you transfer the program from your computer to the micro:bit
14.
Which of these statements is correct?
a)
When you read the value of a variable, the value is replaced.
b)
When you read the value of a variable the value remains.
c)
When you read the value of a variable the value changes.
15.
Which of these is a conditional statement in the code below?
a)
If compass heading (<45)
b)
set heading to (>)
c)
show string (heading)
d)
forever
16.
The order in which commands are executed (run) in a program is the...
a)
Task
b)
Program flow
c)
Appearance
d)
Algorithm
17.
Debugging by isolating code is...
a)
Swapping a piece of code for another
b)
Testing a small piece of code on its own
c)
Replacing all the code
100 %
