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