Coding Quiz
Level 2, 2026-03-29
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(Q,Y)
    VAR=Q * Y
    return VAR

DoSum(6,9)
Print("VAR")
[1]
F=6
if F >= 2:
  Print("Yes")
else:
  Print("No")
[1]
B="1"
B="g"
Print(B)
[1]
F=2
if F <= 2:
  Print("Yes")
else:
  Print("No")
[1]
B=False
X=False
if B != False:
    Print(1)
elif X != True:
    Print(2)
else:
    Print(3)
[1]
Y="f"
Print(f)
[1]
F=True
Y=True
if F == True:
    Print(1)
elif Y != True:
    Print(2)
else:
    Print(3)
[1]
def Hello(A)
    VAR="Hi " + A
    Print(VAR)

Hello("Mike")
[1]
if (False and False):
    Print(1)
elif (False or False):
    Print(2)
else:
    Print(3)
[1]
Y="6"
Y="F"
Print(Y)
[1]
E=2
Z=8
if E >= Z:
    Print("Yes")
else:
    Print("No")
[1]
Y="g"
[1]
Q="b"
X="C"
Print(Q+X)
[1]
Q="E"
Print(E)
[1]
Z="A"
[1]
B=1
X=2
Y=B + X
Print(Y)
[1]
def Hello(Z,type)
    if (!Z) return
    if (type=="good"):
        VAR="Hi "
    elif (type=="bad"):
        VAR="Boo "
    else:
        VAR="Bye"
    return VAR + " " + Z

E = Hello("","good")
Print(E)
[1]
Z="f"
VAR="a"
Print(Z+"VAR")
[1]
VAR=8
Print(VAR)

def MyFunction (VAR):
    VAR=VAR+1
    Print(VAR)

MyFunction(3)
Print(VAR+8)

[1]
X=False
E=False
if X != True:
    Print(1)
elif E == False:
    Print(2)
else:
    Print(3)
[1]