Coding Quiz
Level 2, 2026-07-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
def Hello(Z,type)
    if (type=="good"):
        VAR="Hi "
    elif (type=="bad"):
        VAR="Boo "
    else:
        VAR="Bye"
    Print(VAR+" "+Z)

Hello("Jenny","bad")
[1]
E=5
E=6
if E != E:
    Print("Yes")
else:
    Print("No")
[1]
E="a"
Print(a)
[1]
B=3
if B > 1:
  Print("Yes")
else:
  Print("No")
[1]
def DoSum(A,X)
    F=A + X
    return F

X=DoSum(8,7)
Print(X)
[1]
Q=0
Z=0
while (Q<6):
    Q=Q+1
    Z=Z+3
Print(Q+","+Z)

[1]
VAR="b"
Q="D"
Print(VAR+Q)
[1]
Q=0
while (Q<0):
    Q=Q+1
    Print("X")

[1]
def DoSum(VAR,X)
    B=VAR + X
    return B

DoSum(4,5)
Print("B")
[1]
F=False
E=True
if F == True:
    Print(1)
elif E == False:
    Print(2)
else:
    Print(3)
[1]
def DoSum(VAR,X)
    E=VAR * X
    return E

A=DoSum(2,6)
Print(A)
[1]
A="6"
A="B"
Print(A+A)
[1]
if True:
    Print(1)
elif True:
    Print(2)
else:
    Print(3)
[1]
Z=0
VAR=0
while (Z<3):
    Z=Z+1
    VAR=VAR+4
Print(Z+","+VAR)

[1]
Q=False
F=True
if Q == True:
    Print(1)
elif F == True:
    Print(2)
else:
    Print(3)
[1]
def Hello(X)
  A="Hi " + X

Hello("Melissa")
[1]
#Print("A")
#Print("B")
Print("C")
[1]
def Hello(Q)
  A="Hi " + Q

Hello("Julie")
[1]
A="e"
[1]
A="9"
A="E"
Print(A)
[1]