Our site uses cookies. Some of the cookies we use are essential for parts of the site to operate and have already been set. You may delete and block all cookies from this site, but parts of the site will not work. To find out more about cookies on this website, see our Cookie Policy
Accept
© eRevision.uk and ZigZag Education 2025
This test is run by .
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)

This is your 1st attempt! You get 3 marks for each one you get right first time. Good luck!

Pass Mark
70%