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