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