Coding Quiz
Level 5, 2026-10-27
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
Z=7 B=3 VAR=Z - B Print(VAR)
| [1]
|
|
Q=2 for Y in range(4): Q = Q * Y Q = Q + Y
Print(1)
| [2]
|
|
def isCool(B): X = false if B > 5: X = true return X
def isFool(B): VAR = false if B < 1: VAR = true return VAR
VAR = 2 Print(VAR) if isCool(VAR): Print("!") elif isFool(VAR): Print("?") else: Z=0
| [2]
|
|
for Q in [ "e","a","a" ]: Print(Q)
| [1]
|
|
F = "B" VAR = "" X = 9 Q = 1 X = X+Q Print(X)
| [1]
|
|
F=1 for VAR in range(4): F = F * VAR
Print(F)
| [1]
|
|
B=2 Print(B)
def MyFunction (B): B=B+7 Print(B)
MyFunction(8) Print(B+1)
| [1]
|
|
|
E="E" F="e" Print("E"+F)
| [1]
|
|
|
def DoSum(B,VAR) X=B * VAR return X
F=DoSum(8,6) Print(F)
| [1]
|
|
|
def Hello(Z,type) if (!Z) return if (type=="good"): F="Hi " elif (type=="bad"): F="Boo " else: F="Bye" return F + " " + Z
E = Hello("good","Octavian") Print(E)
| [1]
|
|
X = 8 Y = 7 if X <= 9: Print("1") if Y != 2: Print("2") else: Print("3") elif X == 7: Print("4") if Y == 7: Print("5") else: Print("6") else: Print("7") if Y == 9: Print("8") else: Print("9")
| [2]
|
|
|
F=9 for X in range(4): F = F + X for VAR in range(2): F = F + X
Print(F)
| [2]
|
|
|