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