wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

8.3 Micropython unit tests

Total questions: 10

Worksheet time: 8mins

Name
Class
Date
1.

How many LEDs make up the microbit display?

a)

30

b)

25

c)

20

d)

15

2.

Which of these features is integrated in the microbit?

a)

Power supply

b)

Accelerometer

c)

Speakers

d)

Joystick

3.

Computers can be given instructions by...

a)

Talking to them like a human being.

b)

Programming them using computer coded language.

c)

Using hand gestures.

d)

Handwriting a list of commands.

4.

What method of coding does the Mu Editor (MicroPython) use?

a)

Text based coding

b)

Visual scripting

c)

Block based coding

d)

All of the above

5.

What term is used to refer to transferring code from the editor to the microbit?

a)

Encrypting

b)

Downloading

c)

Flashing

d)

Shocking

6.
You assign a VARIABLE by using 
a)
=
b)
" " or ' ' 
c)
[ ]
d)
>
7.
The correct way to print 
mystring = 'tomato soup' 
mystring is the variable name
'tomato soup' is the value of the variable
a)
Print tomato soup
b)
print = tomato soup
c)
print (mystring)
d)
PRINT mystring
8.
In programming, what is iteration?
a)
The repetition of steps within a program
b)
The order in which instructions are carried out
c)
A decision point in a program
d)
Testing a program to make sure it works
9.
Which type of loop iterates until instructed otherwise?
a)
FOR loop
b)
A count-controlled loop
c)
Repeat-once loop
d)
WHILE loop
10.
a)
10  8  6  4  2
b)
10
8
6
4
2
c)
2  4  6  8  10
d)
10  9  8  7  6  5  4  3  2  1