Coding Quiz
Level 5, 2026-07-14
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
B=6 for A in range(3): B = B * A B = B - 3
Print(B)
| [2]
|
|
def DoSum(B,A) E=B + A return E
DoSum(3,5) Print(E)
| [1]
|
|
Y = "E" X = "g" VAR = 9 Y = 4 if X>Y: Print(1) elif Y<X: Print(2) elif VAR>Y: Print(3) else: Print(4)
| [1]
|
|
X=0 VAR=0 while (X<8): X=X+1 VAR=VAR+7 Print(X+","+VAR)
| [1]
|
|
E=9 if E >= 2: Print("Yes") else: Print("No")
| [1]
|
|
X=3 for VAR in range(2): X = X * VAR for B in range(2): X = X * VAR
Print(X)
| [2]
|
|
Z=True Y=True if Z == True: Print(1) elif Y == True: Print(2) else: Print(3)
| [1]
|
|
if (False and False): Print(1) elif (False or False): Print(2) else: Print(3)
| [1]
|
|
def Hello(X,type) if (type=="good"): VAR="Hi " else: VAR="Bye" Print(VAR+" "+X)
Hello("Mongo","good")
| [1]
|
|
VAR = 6 E = 8 if VAR != 8: Print("1") if E < 3: Print("2") else: Print("3") elif VAR == 2: Print("4") if E >= 3: Print("5") else: Print("6") else: Print("7") if E < 6: Print("8") else: Print("9")
| [2]
|
|
|
B = 0 for Y in [ 2,1 ]: if (Y < 1): B = B + Y else: B = B + 6 Print(B)
| [2]
|
|
def doThis(Y): Q=Y - 8 return Q
def doThat(Y): F=Y + 3 return F
E = doThis(2) E = doThat(E) Print(E)
| [2]
|
|
def doThis(Q): E=Q + 3 return E
def doThat(F): Q=F * 8 return Q
VAR = doThis(1) VAR = doThat(VAR) Print(VAR)
| [2]
|
|
|