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