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.
4. Developing Software Typeit
Target Level
C
Running Total
0
0%
Attempt
1 of 3
Type the correct answers into the spaces. Fill all the spaces before clicking ‘Check Answers!’
Type the output for each algorithm. Note that the lines of code containing 'print' contain no spaces.
a = 5
b = 6
c = 4
print(a+b+c)
x = 12
y = 13
z = 6
print("x+y+z")
i = 4
j = 12
k = 6
print(i+i+k)
x = 5
if x < 5 then
x = 0
elseif x > 5 then
x = 10
print(x)
a = 10
if a >= 10 then
a = 5
if a < 10 then
a = 15
print(a)
j = 2
for i = 1 to 3
j = j^i
next i
print(j)
m = "1"
n = 1
print(n+m+n)
a = 5
b = 3
while (a * b) < 50
a = a + 1
b = b + 1
endwhile
print(a*b*2)
g = 3
h = 2
while h < 100
g = g + 1
h = h * 3
endwhile
print(g)
a = 2
for b = 0 to 6
for c = 1 to 3
a = a – 1
next c
next b
print(a)