Coding Quiz
Level 2, 2026-07-21
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
X=True
A=False
if X != False:
    Print(1)
elif A == True:
    Print(2)
else:
    Print(3)
[1]
def Hello(Z)
  F="Hi " + Z

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

Y = Hello("Flip","bad")
Print(Y)
[1]
def DoSum(X,F,Y)
    VAR=F - X * Y
    Print(VAR)

DoSum(7,8,4)
[1]
A=True
E=False
if A != False:
    Print(1)
elif E != False:
    Print(2)
else:
    Print(3)
[1]
F="8"
F="A"
Print(F)
[1]
A="c"
VAR="f"
Print(VAR+A)
[1]
def DoSum(X,Y)
    E=X + Y
    Print(E)

DoSum(8,7)
[1]
def DoSum(Y,F,A)
    X=Y + F + A
    Print(X)

DoSum(2,3,8)
[1]
A="g"
[1]
Q=6
if Q >= 8:
  Print("Yes")
else:
  Print("No")
[1]
def DoSum(A,B)
    X=A * B
    return X

X=DoSum(8,5)
Print(X)
[1]
def DoSum(VAR,Z)
    E=VAR * Z
    Print(E)

DoSum(8,5)
[1]
A=0
X=1
while (A<3):
    A=A+1
    X=X*A
Print(X)

[1]
Z=7
if Z < 8:
  Print("Yes")
else:
  Print("No")
[1]
A="2"
A="F"
Print(A+A)
[1]
Z=0
VAR=0
while (Z<8):
    Z=Z+1
    VAR=VAR+3
Print(Z+","+VAR)

[1]
F="c"
Print(c)
[1]
def DoSum(A,VAR)
    Z=A + VAR
    return Z

DoSum(1,9)
Print("Z")
[1]
B="A"
Print(A)
[1]