WorksheetsMicro:bit conditions
Total questions: 9
Worksheet time: 9mins
What is output of code?
a < b
Line 4: expecting ':' near '\n'
Line 4: operator '>' cannot be applied to types 'number' and 'string'
Line 4: missing brackets in if statement
What is output of code?
a > b
Line 4: expecting ':' near '\n'
Line 4: operator '>' cannot be applied to types 'number' and 'string'
Line 4: expected '('
Line 4: expected ')'
What is output of code?
a > b
empty screen
Line 4: operator '>' cannot be applied to types 'number' and 'string'
Line 5: types not compatible: number and string
What is output of code?
a > b
Line 4: expecting ':' near '\n'
Line 4: operator '>' cannot be applied to types 'number' and 'string'
Line 5: types not compatible: number and string
What is output of code?
a > b
Line 4: expecting ':' near '\n'
Line 4: operator '>' cannot be applied to types 'number' and 'string'
Line 4: missing brackets in if statement
What is output of code?
a > b
Line 4: expecting ':' near '\n'
Line 4: operator '>' cannot be applied to types 'number' and 'string'
a < b
What is output of code?
a > b
Line 4: expecting ':' near '\n'
Line 4: operator '>' cannot be applied to types 'number' and 'string'
a < b
What is output of code?
a > b
Line 6: expecting ':' near '\n'
Line 4: operator '>' cannot be applied to types 'number' and 'string'
a < b
What is output of code?
a > b
Line 6: expecting ':' near '\n'
Line 4: operator '>' cannot be applied to types 'number' and 'string'
a < b
