Coding Quiz
Level 2, 2025-11-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
def DoSum(F,E)
    X=F + E
    Print(X)

DoSum(2,7)
[1]
X=False
F=True
if X != False:
    Print(1)
elif F == False:
    Print(2)
else:
    Print(3)
[1]
Z="1"
Z="d"
Print(Z+Z)
[1]
#Print("A")
#Print("B")
#Print("C")
[1]
F=0
VAR=1
while (F<3):
    F=F+1
    VAR=VAR*F
Print(VAR)

[1]
F=0
Q=""
while (F<4):
    F=F+1
    Q=Q+"X"
Print(Q)

[1]
if False:
    Print(1)
elif False:
    Print(2)
else:
    Print(3)
[1]
if True:
    Print(1)
elif True:
    Print(2)
else:
    Print(3)
[1]
B="B"
B="c"
[1]
B=0
Y=1
while (B<9):
    B=B+1
    Y=Y*B
Print(Y)

[1]
VAR="1"
A="G"
Print(VAR+A)
[1]
Z="9"
Y="F"
Print(Z+Y)
[1]
A=False
F=True
if A != True:
    Print(1)
elif F == False:
    Print(2)
else:
    Print(3)
[1]
def Hello(X,type)
    if (type=="good"):
        A="Hi "
    elif (type=="bad"):
        A="Boo "
    else:
        A="Bye"
    Print(A+" "+X)

Hello("Felix","bad")
[1]
B=0
X=0
while (B<6):
    B=B+1
    X=X+4
Print(B+","+X)

[1]
F=0
A=0
while (F<7):
    F=F+1
    A=A+4
Print(F+","+A)

[1]
Y="E"
Y="e"
Print(Y+Y)
[1]
def DoSum(VAR,E)
    Z=VAR * E
    Print(Z)

DoSum(8,1)
[1]
def Hello(X,type)
    if (type=="good"):
        F="Hi "
    else:
        F="Bye"
    Print(F+" "+X)

Hello("Mike","good")
[1]
B=0
Q=0
while (B<8):
    B=B+1
    Q=Q+8
Print(B+","+Q)

[1]