Coding Quiz
Level 5, 2026-07-27
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
Q = "A" VAR = "2" Q = 2 A = 6 F = Q+Q Print(F)
| [1]
|
|
E=False Q=False if E != True: Print(1) elif Q == False: Print(2) else: Print(3)
| [1]
|
|
def Hello(Z) E="Hi " + Z
Hello("Julie")
| [1]
|
|
def Hello(Y) X="Hi " + Y Print(X)
Hello("Max")
| [1]
|
|
def doThis(Z): Q=Z + 6 Q = doThat(Q) return Q
def doThat(B): VAR=B * 3 return VAR
X = doThis(1) X = doThis(X) Print(X)
| [2]
|
|
for Y in [ 1,2,4,3 ]: Print(Y)
| [1]
|
|
A=5 for A in range(2): Print(E) for E in range(2): A = A - A Print(E) Print(A)
| [2]
|
|
Q = 3 for F in [ 5,1,4 ]: if (F == 1): Q = Q + F else: Q = Q + 4 Print(Q)
| [2]
|
|
VAR=0 A=0 while (VAR<5): VAR=VAR+1 A=A+8 Print(VAR+","+A)
| [1]
|
|
Y=0 X=1 while (Y<5): Y=Y+1 X=X*Y Print(X)
| [1]
|
|
|
B=0 Y=1 while (B<8): B=B+1 Y=Y*B Print(Y)
| [1]
|
|
VAR=7 if VAR > 7: Print("Yes") else: Print("No")
| [1]
|
|
for Q in [ 4,"a",5 ]: if (Q > "a"): Print(Q) else: Print(5)
| [1]
|
|
def DoSum(Y,VAR) E=Y * VAR return E
DoSum(6,8) Print("E")
| [1]
|
|
for E in [ "d",5 ]: if (E >= 5): Print(E)
| [1]
|
|
|
|