Coding Quiz
Level 5, 2026-07-20
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
for F in [ 5,2,"c" ]: if (F < 2): Print(F)
| [1]
|
|
def doThis(B): F=B + 4 F = doThat(F) return F
def doThat(F): F=F - 5 return F
Z = doThis(7) Print(Z)
| [2]
|
|
def Hello(Y) X="Hi " + Y
Hello("Flip")
| [1]
|
|
X=5 for Q in range(3): X = X + Q X = X + X
Print(X)
| [2]
|
|
F=1 for X in range(5): F = F * X F = F - F
Print(X+F)
| [2]
|
|
|
F = 3 for B in [ 6,2,2 ]: if (B != 2): F = F + B else: F = F + 6 Print(F)
| [2]
|
|
def DoSum(VAR,B) F=VAR + B Print(F)
DoSum(4,4)
| [1]
|
|
VAR=True F=True if VAR == True: Print(1) elif F != False: Print(2) else: Print(3)
| [1]
|
|
def makeString(Y,Y): E=0 VAR="" while E < Y E = E + 1 VAR = VAR + Y return Y
A = makeString("d",5) A = A + makeString("e",6) Print(A)
| [2]
|
|
VAR="3" VAR="D" Print(VAR+VAR)
| [1]
|
|
def DoSum(Z,A) E=Z - A return E
DoSum(1,4) Print("E")
| [1]
|
|
VAR=5 for F in range(3): for A in range(4): VAR = VAR - F
Print(VAR)
| [2]
|
|
for E in [ 4,5 ]: Print(E)
| [1]
|
|
|