ICT-Microbits

?
What line of code gives an instruction a 5 second delay?
sleep(5000)
1 of 8
What is the line of code that is given to correctly use the Microbit library?
from microbit import *
2 of 8
What is the purpose of and data type used for 'while True:'?
To make the code repeat forever. It uses a bootlean data type.
3 of 8
What is a variable?
A value that can change depending on conditions or information passed to it.
4 of 8
Define the purpose of '<'.
Used for a variable if it less than something else.
5 of 8
The following line of code has 3 parameters. What do each of them control? display.setPixel(0,0,9)
The axis of the pixel, the column of the pixel and the brightness of the pixel.
6 of 8
What datatype is the number 20?
Integer
7 of 8
What datatype is "yes"?
String
8 of 8

Other cards in this set

Card 2

Front

What is the line of code that is given to correctly use the Microbit library?

Back

from microbit import *

Card 3

Front

What is the purpose of and data type used for 'while True:'?

Back

Preview of the front of card 3

Card 4

Front

What is a variable?

Back

Preview of the front of card 4

Card 5

Front

Define the purpose of '<'.

Back

Preview of the front of card 5
View more cards

Comments

No comments have yet been made

Similar Fun resources:

See all Fun resources »See all Fun resources »