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