Coding Quiz
Level 2, 2026-05-05
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
Y=0
E=1
while (Y<1):
    Y=Y+1
    E=E*Y
Print(E)

[1]
def DoSum(A,VAR,Q)
    E=Q * A - VAR
    Print(E)

DoSum(4,9,6)
[1]
B="6"
B="B"
Print(B)
[1]
def Hello(VAR)
    Y="Hi " + VAR
    Print(Y)

Hello("Julie")
[1]
def Hello(E,type)
    if (!E) return
    if (type=="good"):
        A="Hi "
    elif (type=="bad"):
        A="Boo "
    else:
        A="Bye"
    return A + " " + E

Q = Hello("Melissa","good")
Print(Q)
[1]
E=0
VAR=""
while (E<6):
    E=E+1
    VAR=VAR+"X"
Print(VAR)

[1]
def Hello(E)
    Y="Hi " + E
    Print(Y)

Hello("Octavian")
[1]
E=0
A=""
while (E<8):
    E=E+1
    A=A+"X"
Print(A)

[1]
B="6"
B="E"
Print(B+B)
[1]
def Hello(B,type)
    if (type=="good"):
        VAR="Hi "
    else:
        VAR="Bye"
    Print(VAR+" "+B)

Hello("Max","bad")
[1]
F=9
F=6
if F <= F:
    Print("Yes")
else:
    Print("No")
[1]
Q="D"
B="E"
Print(B+Q)
[1]
def DoSum(Z,A)
    VAR=Z + A
    return VAR

B=DoSum(1,1)
Print(VAR)
[1]
def Hello(Q)
    F="Hi " + Q
    Print(F)

Hello("Felix")
[1]
def DoSum(A,E,F)
    X=F + A + E
    Print(X)

DoSum(4,6,4)
[1]
Y="D"
Y="1"
Print(Y)
[1]
Y=0
while (Y<3):
    Y=Y+1
    Print("X")

[1]
B=0
X=0
while (B<7):
    B=B+1
    X=X+3
Print(B+","+X)

[1]
Q="D"
[1]
Y="A"
Print("Y")
[1]