This test is run by .
Note that your final mark will not be saved in the system.
Note that your final mark will not be saved in the system.
Producing robust programs (2.3) Categorise
Target Level
4-5
Running Total
0
0%
Attempt
1 of 2
Click on an item, then click on a category to place it. Or, drag and drop the item into the correct category. Organise all items before clicking 'Check'.
Syntax Error
Logic Error
No Error
//Subtracts b from a and multiplies the result by c
a - b * c
//Returns true if a number is odd
if a MOD 2 == 1 then
return true
endif
//Multiplies a by itself b times
b^a
//Prints each character in a string
while i = 0 to string.length - 1
print(string[i])
endwhile
//Divides a by b, rounding down to the nearest integer
a DIV b
//Swaps the values of a and b
temp = a
a = b
b = temp
//Displays the length of a user-input string
print(input('Enter a string').length)
//Prints all integer numbers from 1 to 10 inclusive
i = 1
do
print(i)
i = i + 1
until i == 10
//Checks if the value of a is larger than value of b
b <= a
//Converts a string into a float
a = '7.4'
b = flot(a)