Coding Quiz
Level 5, 2026-02-09
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 = "1" Y = "" Q = 8 VAR = 4 Y = Y+Y Print(Y)
| [1]
|
|
def doThis(Z): VAR=Z * 5 return VAR
def doThat(Z): Q=Z - 7 return Q
X = doThis(9) X = doThat(X) Print(X)
| [2]
|
|
def Hello(A,type) if (type=="good"): Y="Hi " elif (type=="bad"): Y="Boo " else: Y="Bye" Print(Y+" "+A)
Hello("Missy","bad")
| [1]
|
|
def doThis(A): X=A + 3 return X
def doThat(Q): Z=Q * 7 return Z
Z = doThis(2) Z = doThat(Z) Print(Z)
| [2]
|
|
Z = 5 E = 3 if Z < 7: Print("1") if E <= 6: Print("2") else: Print("3") elif Z >= 9: Print("4") if E != 8: Print("5") else: Print("6") else: Print("7") if E == 5: Print("8") else: Print("9")
| [2]
|
|
def Hello(Q,type) if (!Q) return if (type=="good"): VAR="Hi " elif (type=="bad"): VAR="Boo " else: VAR="Bye" return VAR + " " + Q
F = Hello("Mongo","ok") Print(F)
| [1]
|
|
def Hello(Y) Q="Hi " + Y Print(Q)
Hello("Jenny")
| [1]
|
|
def Hello(Q,type) if (!Q) return if (type=="good"): A="Hi " elif (type=="bad"): A="Boo " else: A="Bye" return A + " " + Q
X = Hello("","ok") Print(X)
| [1]
|
|
def doThis(Z): E=Z + 4 E = doThat(E) return E
def doThat(F): Q=F + 5 return Q
VAR = doThis(8) Print(VAR)
| [2]
|
|
B = "8" F = "c" Y = 6 A = 3 if A>Y: Print(1) elif A<F: Print(2) elif B>A: Print(3) else: Print(4)
| [1]
|
|
A=0 Q=1 while (A<4): A=A+1 Q=Q*A Print(Q)
| [1]
|
|
|
Y=5 for VAR in range(3): Y = Y - VAR Y = Y + VAR
Print(Y)
| [2]
|
|
def doThis(E): E=E + 4 return E
def doThat(Z): X=Z - 8 return X
E = doThis(5) E = doThat(E) Print(E)
| [2]
|
|
|