Coding Quiz
Level 5, 2026-06-01
All code is in Python. Operations with strings and numbers are not allowed. Ordering of string characters: !,A,1,a (meaning 'A' < 'a').
Special Symbols:    Blank:      Space:      Error: E
for X in [ "b","d" ]:
    if (X <= "d"):
        Print(X)
[1]
def Hello(Y,type)
    if (!Y) return
    if (type=="good"):
        Z="Hi "
    elif (type=="bad"):
        Z="Boo "
    else:
        Z="Bye"
    return Z + " " + Y

Q = Hello("Jenny","ok")
Print(Q)
[1]
VAR="E"
E="f"
Print(E+VAR)
[1]
def makeString(E,Y):
    E=0
    Y=""
    while E < Y
        E = E + 1
        Y = Y + E
    return E

A = makeString("D",7)
A = A + makeString("A",2)
Print(A)
[2]
def Hello(A)
    E="Hi " + A
    Print(E)

Hello("Mike")
[1]
def makeString(A,F):
    F=0
    E=""
    while F < F
        F = F + 1
        E = E + A
    return A

B = makeString("B",5)
B = B + makeString("E",5)
Print(B)
[2]
Y="f"
VAR="B"
[1]
X=9
if X <= 9:
  Print("Yes")
else:
  Print("No")
[1]
def doThis(Y):
    VAR=Y * 8
    VAR = doThat(VAR)
    return VAR

def doThat(F):
    E=F + 4
    return E

Q = doThis(6)
Q = doThis(Q)
Print(Q)
[2]
Y=3
for E in range(3):
    Y = Y + E
    Y = Y - E

Print(Y)
[2]
Y=2
for Z in range(2):
    Print(Z)
    for B in range(2):
        Y = Y * Z
        Print(B)
Print(Y)
[2]
X = "!"
A = "X"
A = 9
Y = 4
Y = A+X
Print(Y)
[1]
X = "!"
VAR = "B"
Y = 9
Q = 3
B = X+VAR
Print(B)
[1]
for Z in [ 2,"e" ]:
    if (Z < "e"):
        Print(Z)
[1]
A="5"
A="f"
Print(A)
[1]