Coding Quiz
Level 2, 2025-12-08
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 Hello(F,type)
    if (type=="good"):
        X="Hi "
    elif (type=="bad"):
        X="Boo "
    else:
        X="Bye"
    Print(X+" "+F)

Hello("Max","good")
[1]
Z=False
A=False
if Z != True:
    Print(1)
elif A != False:
    Print(2)
else:
    Print(3)
[1]
Q="B"
Print("Q")
[1]
Q=1
X=1
Z=Q + X
Print(Z)
[1]
Z=0
F=0
while (Z<8):
    Z=Z+1
    F=F+9
Print(Z+","+F)

[1]
def Hello(Y,type)
    if (type=="good"):
        A="Hi "
    else:
        A="Bye"
    Print(A+" "+Y)

Hello("Max","bad")
[1]
A="d"
Print(A)
[1]
def DoSum(Y,B)
    VAR=Y * B
    return VAR

DoSum(1,3)
Print(VAR)
[1]
F=7
VAR=6
if F == VAR:
    Print("Yes")
else:
    Print("No")
[1]
def DoSum(Q,A,Y)
    E=Q * A + Y
    Print(E)

DoSum(1,3,6)
[1]
E=False
F=True
if E == True:
    Print(1)
elif F != False:
    Print(2)
else:
    Print(3)
[1]
def DoSum(E,A)
    Q=E - A
    Print(Q)

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

Hello("Mike")
[1]
E=True
Y=False
if E == False:
    Print(1)
elif Y != True:
    Print(2)
else:
    Print(3)
[1]
F="a"
Z="F"
Print(F+Z)
[1]
A=0
Q=0
while (A<1):
    A=A+1
    Q=Q+6
Print(A+","+Q)

[1]
F=0
Y=""
while (F<3):
    F=F+1
    Y=Y+"X"
Print(Y)

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

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

B = Hello("bad","Missy")
Print(B)
[1]
F="A"
Print(F)
[1]