Coding Quiz
Level 5, 2026-04-15
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=5 for A in range(4): X = X - A X = X * 3
Print(A)
| [2]
|
|
Z = "G" A = "D" E = 3 F = 1 if Z>E: Print(1) elif E<F: Print(2) elif Z>E: Print(3) else: Print(4)
| [1]
|
|
B=6 for X in range(4): B = B * X B = B + X
Print(X)
| [2]
|
|
VAR=3 for E in range(4): VAR = VAR + E for E in range(2): VAR = VAR + E
Print(VAR)
| [2]
|
|
A=9 for B in range(3): Print(B) for X in range(3): A = A + B Print(X) Print(A)
| [2]
|
|
X=9 Print(X)
def MyFunction (X): X=X+9 Print(X)
MyFunction(9) Print(X+5)
| [1]
|
|
def isCool(X): VAR = false if X > 5: VAR = true return VAR
def isFool(F): Y = false if F < 4: Y = true return Y
Q = 1 Print(Q) if isCool(Q): Print("!") elif isFool(Q): Print("?") else: A=0
| [2]
|
|
Z=0 X=0 while (Z<1): Z=Z+1 X=X+4 Print(Z+","+X)
| [1]
|
|
def doThis(E): Q=E * 6 return Q
def doThat(Y): X=Y + 7 return X
B = doThat(4) B = doThis(B) Print(B)
| [2]
|
|
X = "!" VAR = "B" VAR = 4 E = 3 B = X+"VAR" Print(B)
| [1]
|
|
E=0 B=0 while (E<1): E=E+1 B=B+9 Print(E+","+B)
| [1]
|
|
Q=7 for X in range(2): for Y in range(3): Q = Q * X
Print(Q)
| [2]
|
|
|