Coding Quiz
Level 2, 2025-12-07
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
F="6"
F="F"
Print(F+F)
[1]
Y="g"
A="d"
Print(Y+A)
[1]
F="G"
F="8"
Print(F)
[1]
def DoSum(E,A)
    Q=E + A
    return Q

DoSum(1,1)
Print("Q")
[1]
F="c"
Z="c"
Print(F+"Z")
[1]
def DoSum(Y,E,X)
    A=E * X - Y
    Print(A)

DoSum(8,6,6)
[1]
B=8
Z=7
if B < Z:
    Print("Yes")
else:
    Print("No")
[1]
def Hello(Y,type)
    if (type=="good"):
        F="Hi "
    elif (type=="bad"):
        F="Boo "
    else:
        F="Bye"
    Print(F+" "+Y)

Hello("Mongo","ok")
[1]
Q=0
X=""
while (Q<6):
    Q=Q+1
    X=X+"X"
Print(X)

[1]
if False:
    Print(1)
elif False:
    Print(2)
else:
    Print(3)
[1]
def DoSum(F,VAR)
    B=F + VAR
    return B

X=DoSum(1,4)
Print(B)
[1]
X="C"
VAR="b"
Print(VAR+X)
[1]
Z=0
Y=0
while (Z<6):
    Z=Z+1
    Y=Y+7
Print(Z+","+Y)

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

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

VAR = Hello("ok","Missy")
Print(VAR)
[1]
if (True and False):
    Print(1)
elif (True or False):
    Print(2)
else:
    Print(3)
[1]
def DoSum(Y,F,A)
    Q=F * A + Y
    Print(Q)

DoSum(3,8,4)
[1]
def DoSum(A,Q)
    X=A - Q
    Print(X)

DoSum(6,5)
[1]
VAR=6
if E < 8:
    Print("Yes")
else:
    Print("No")
[1]