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.
Programming Concepts 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'.
Sequence
Selection
Iteration
REPEAT
PRINT(count)
count ← count -1
UNTIL count = 5
PRINT(count)
count ← count -1
UNTIL count = 5
WHILE x <= b
total = a * x
PRINT (total)
x ← x + 1
total = a * x
PRINT (total)
x ← x + 1
OUTPUT 'Enter radius'
radius ← USERINPUT
CONST PI ← 3.14159
area ← PI * radius * radius
OUTPUT area
radius ← USERINPUT
CONST PI ← 3.14159
area ← PI * radius * radius
OUTPUT area
IF LEN(name) = 0 THEN
PRINT ('You have not entered any text')
PRINT ('Please enter your name')
ELSE
valid = True
ENDIF
PRINT ('You have not entered any text')
PRINT ('Please enter your name')
ELSE
valid = True
ENDIF
IF subNum >= 1 AND subNum <= 26 THEN
validSubNum ← True
ELSE
PRINT ('Number must be between 1 and 26')
ENDIF
validSubNum ← True
ELSE
PRINT ('Number must be between 1 and 26')
ENDIF
notFound ← False
OUTPUT 'What item do you want to use?'
item ← USERINPUT
OUTPUT 'What item do you want to use?'
item ← USERINPUT
valid ← False
PRINT ('Enter your name')
PRINT ('Enter your name')
FOR i ← 0 TO LEN(daily_temps) -1
totalTemps ← totalTemps + daily_temps[i]
ENDFOR
totalTemps ← totalTemps + daily_temps[i]
ENDFOR
IF x MOD 3 = 0 AND x MOD 5 = 0 THEN
PRINT ('FizzBuzz')
IF x MOD 5 = 0 THEN
PRINT ('Fizz')
ELSE
PRINT(x)
ENDIF
PRINT ('FizzBuzz')
IF x MOD 5 = 0 THEN
PRINT ('Fizz')
ELSE
PRINT(x)
ENDIF