Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Micro:bit conditions

Total questions: 9

Worksheet time: 9mins

Name
Class
Date
1.

What is output of code?

a)

a < b

b)

Line 4: expecting ':' near '\n'

c)

Line 4: operator '>' cannot be applied to types 'number' and 'string'

d)

Line 4: missing brackets in if statement

2.

What is output of code?

a)

a > b

b)

Line 4: expecting ':' near '\n'

c)

Line 4: operator '>' cannot be applied to types 'number' and 'string'

d)

Line 4: expected '('

Line 4: expected ')'

3.

What is output of code?

a)

a > b

b)

empty screen

c)

Line 4: operator '>' cannot be applied to types 'number' and 'string'

d)

Line 5: types not compatible: number and string

4.

What is output of code?

a)

a > b

b)

Line 4: expecting ':' near '\n'

c)

Line 4: operator '>' cannot be applied to types 'number' and 'string'

d)

Line 5: types not compatible: number and string

5.

What is output of code?

a)

a > b

b)

Line 4: expecting ':' near '\n'

c)

Line 4: operator '>' cannot be applied to types 'number' and 'string'

d)

Line 4: missing brackets in if statement

6.

What is output of code?

a)

a > b

b)

Line 4: expecting ':' near '\n'

c)

Line 4: operator '>' cannot be applied to types 'number' and 'string'

d)

a < b

7.

What is output of code?

a)

a > b

b)

Line 4: expecting ':' near '\n'

c)

Line 4: operator '>' cannot be applied to types 'number' and 'string'

d)

a < b

8.

What is output of code?

a)

a > b

b)

Line 6: expecting ':' near '\n'

c)

Line 4: operator '>' cannot be applied to types 'number' and 'string'

d)

a < b

9.

What is output of code?

a)

a > b

b)

Line 6: expecting ':' near '\n'

c)

Line 4: operator '>' cannot be applied to types 'number' and 'string'

d)

a < b