Coding Quiz
Level 2, 2026-09-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
if (True and False):
    Print(1)
elif (True or False):
    Print(2)
else:
    Print(3)
[1]
Z="9"
Z="E"
Print(Z+Z)
[1]
E=0
Z=1
while (E<9):
    E=E+1
    Z=Z*E
Print(Z)

[1]
E="d"
E="c"
Print("E"+E)
[1]
X=6
B=4
E=X - B
Print(E)
[1]
Q=0
while (Q<2):
    Q=Q+1
    Print("X")

[1]
A=0
while (A<0):
    A=A+1
    Print("X")

[1]
X=0
Q=1
while (X<9):
    X=X+1
    Q=Q*X
Print(Q)

[1]
def DoSum(X,Y)
    F=X * Y
    Print(F)

DoSum(5,6)
[1]
B="3"
VAR="f"
Print(B+VAR)
[1]
X=0
VAR=1
while (X<9):
    X=X+1
    VAR=VAR*X
Print(VAR)

[1]
E="F"
Print("E")
[1]
def Hello(B,type)
    if (type=="good"):
        X="Hi "
    elif (type=="bad"):
        X="Boo "
    else:
        X="Bye"
    Print(X+" "+B)

Hello("Edward","bad")
[1]
if False:
    Print(1)
elif False:
    Print(2)
else:
    Print(3)
[1]
Z="4"
VAR="f"
Print(Z+VAR)
[1]
def DoSum(Y,VAR)
    F=Y * VAR
    return F

DoSum(7,4)
Print(F)
[1]
VAR=8
if VAR == 3:
  Print("Yes")
else:
  Print("No")
[1]
X="e"
A="e"
[1]
Q=6
if Q == 7:
  Print("Yes")
else:
  Print("No")
[1]
F="c"
[1]