Coding Quiz
Level 5, 2026-11-17
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
E="G" VAR="F" Print(E+"VAR")
| [1]
|
|
|
for F in [ "b",3 ]: if (F <= 3): Print(F)
| [1]
|
|
def isCool(E): Z = false if E > 4: Z = true return Z
def isFool(VAR): Q = false if VAR < 0: Q = true return Q
Z = 8 Print(Z) if isCool(Z): Print("!") elif isFool(Z): Print("?") else: X=0
| [2]
|
|
def doThis(Y): Q=Y * 7 return Q
def doThat(X): A=X - 5 return A
E = doThis(3) E = doThat(E) Print(E)
| [2]
|
|
if (True and False): Print(1) elif (True or False): Print(2) else: Print(3)
| [1]
|
|
def makeString(Z,A): B=0 Y="" while B < A B = B + 1 Y = Y + Z return Z
Y = makeString("F",8) Y = Y + makeString("F",9) Print(Y)
| [2]
|
|
def doThis(VAR): Z=VAR + 3 Z = doThat(Z) return Z
def doThat(Q): F=Q + 7 return F
F = doThis(3) Print(F)
| [2]
|
|
for X in [ "b","a",4,2 ]: Print(X)
| [1]
|
|
X = "F" Q = "D" B = 3 VAR = 2 if X<B: Print(1) elif X>Q: Print(2) elif X>Q: Print(3) else: Print(4)
| [1]
|
|
def Hello(A) E="Hi " + A
Hello("Max")
| [1]
|
|
|
def makeString(Z,E): E=0 A="" while E < E E = E + 1 A = A + Z return Z
VAR = makeString("G",1) VAR = VAR + makeString("f",7) Print(VAR)
| [2]
|
|
|
Z="c" Y="A" Print(Z+"Y")
| [1]
|
|
|