Coding Quiz
Level 5, 2026-10-06
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
X = 3
Q = 2
if X == 5:
    Print("1")
    if Q >= 8:
        Print("2")
    else:
        Print("3")
elif X < 2:
    Print("4")
    if Q > 3:
        Print("5")
    else:
        Print("6")
else:
    Print("7")
    if Q == 1:
        Print("8")
    else:
        Print("9")
[2]
def Hello(E,type)
    if (!E) return
    if (type=="good"):
        B="Hi "
    elif (type=="bad"):
        B="Boo "
    else:
        B="Bye"
    return B + " " + E

A = Hello("","good")
Print(A)
[1]
VAR="g"
VAR="1"
Print(VAR)
[1]
F = "X"
Z = ""
B = 9
B = 5
A = B+F
Print(A)
[1]
B = 3
for Q in [ 3,5 ]:
    if (Q >= 5):
        B = B + Q
    else:
        B = B + 2
Print(B)
[2]
X="C"
Print(X)
[1]
def makeString(Y,B):
    Z=0
    F=""
    while Z < B
        Z = Z + 1
        F = F + Y
    return Y

E = makeString("d",8)
E = E + makeString("e",7)
Print(E)
[2]
VAR="8"
VAR="D"
Print(VAR+VAR)
[1]
def Hello(Z)
    Y="Hi " + Z
    Print(Y)

Hello("Mongo")
[1]
for A in [ 1,"e" ]:
    Print(A)
[1]
def Hello(Y,type)
    if (!Y) return
    if (type=="good"):
        A="Hi "
    elif (type=="bad"):
        A="Boo "
    else:
        A="Bye"
    return A + " " + Y

X = Hello("Mike","ok")
Print(X)
[1]
VAR=9
for X in range(3):
    Print(X)
    for A in range(2):
        VAR = VAR - X
        Print(A)
Print(A)
[2]
B="b"
A="F"
Print(B+"A")
[1]
def Hello(VAR,type)
    if (type=="good"):
        Z="Hi "
    else:
        Z="Bye"
    Print(Z+" "+VAR)

Hello("Felix","good")
[1]
def DoSum(Y,Z,Q)
    VAR=Z * Q - Y
    Print(VAR)

DoSum(6,1,8)
[1]
Z="5"
Z="B"
Print(Z)
[1]