Coding Quiz
Level 2, 2026-05-19
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=True Z=True if F != True: Print(1) elif Z == False: Print(2) else: Print(3)
| [1]
|
|
E=0 X=1 while (E<8): E=E+1 X=X*E Print(X)
| [1]
|
|
B=0 Q="" while (B<5): B=B+1 Q=Q+"X" Print(Q)
| [1]
|
|
|
Y="e" A="f" Print(Y+"A")
| [1]
|
|
VAR="E" Q="d" Print(Q+VAR)
| [1]
|
|
Z=9 if Z == 8: Print("Yes") else: Print("No")
| [1]
|
|
def Hello(Y,type) if (type=="good"): X="Hi " elif (type=="bad"): X="Boo " else: X="Bye" Print(X+" "+Y)
Hello("Felix","ok")
| [1]
|
|
Q=0 while (Q<0): Q=Q+1 Print("X")
| [1]
|
|
|
if True: Print(1) elif True: Print(2) else: Print(3)
| [1]
|
|
Print("A") #Print("B") Print("C")
| [1]
|
|
Q=False F=True if Q == True: Print(1) elif F != False: Print(2) else: Print(3)
| [1]
|
|
A=8 Print(A)
def MyFunction (A): A=A+1 Print(A)
MyFunction(7) Print(A+5)
| [1]
|
|
def DoSum(VAR,Y,B) E=VAR + B - Y Print(E)
DoSum(7,9,9)
| [1]
|
|
if (True and True): Print(1) elif (True or True): Print(2) else: Print(3)
| [1]
|
|
Y=0 E=0 while (Y<6): Y=Y+1 E=E+2 Print(Y+","+E)
| [1]
|
|
def Hello(Y) X="Hi " + Y Print(X)
Hello("Mike")
| [1]
|
|
def Hello(A,type) if (type=="good"): B="Hi " else: B="Bye" Print(B+" "+A)
Hello("Missy","bad")
| [1]
|
|
|