Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Microbit - ping pong

Total questions: 8

Worksheet time: 4mins

Name
Class
Date
1.

Which picture is correct for position

ball_row = 2

ball_column = 2

a)
b)
c)
d)
2.

What is output of called function? Or is there an error?

a)

5

b)

10

c)

25

d)

name 'c' is not defined

3.

What is printed on the screen? Or is there an error?

a)

a > b

b)

a < b

c)

a <= b

d)

argument of type 'boolean' is not assignable to parameter of type ''string'

4.

What is printed on the screen? Or is there an error?

a)

Numbers are equal

b)

expected an intended block near 'basic'

c)

expecting ':' near '\n'

5.

ball_vertical_move = 1

ball_horizontal_move = 2


led.plot(ball_row + ball_vertical_move,

ball_column + ball_horizontal_move)


Která led se rozsvítí?

a)
b)
c)
d)
6.

What is printed on the screen? Or is there an error?

a)

a > b

b)

expected an intended block near 'basic'

c)

expecting ':' near '\n'

7.

What can do function


led.unplot()

a)

turn on the specified Led

b)

turn of the specified led

c)

get the on/off state of Led

8.

Which one is the correct function definition?

a)

sum(a,b):

b)

def sum(a,b):

c)

def sum(a,b)

d)

def sum(a,b: