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