Coding Quiz
Level 2, 2026-08-18
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
|
|
|
A=6 if X != 2: Print("Yes") else: Print("No")
| [1]
|
|
def DoSum(E,X,B) Y=X + E - B Print(Y)
DoSum(9,9,4)
| [1]
|
|
Y="D" A="f" Print("Y"+A)
| [1]
|
|
VAR=0 while (VAR<3): VAR=VAR+1 Print("X")
| [1]
|
|
|
Y=6 if Y > 5: Print("Yes") else: Print("No")
| [1]
|
|
def DoSum(F,E,VAR) Z=F * E * VAR Print(Z)
DoSum(5,4,3)
| [1]
|
|
|
|
A=0 Q="" while (A<2): A=A+1 Q=Q+"X" Print(Q)
| [1]
|
|
|
X=0 VAR=0 while (X<7): X=X+1 VAR=VAR+9 Print(X+","+VAR)
| [1]
|
|
|
def Hello(A) Q="Hi " + A Print(Q)
Hello("Missy")
| [1]
|
|
if (False and True): Print(1) elif (False or True): Print(2) else: Print(3)
| [1]
|
|
def DoSum(Z,F) Y=Z - F Print(Y)
DoSum(5,4)
| [1]
|
|
X=0 E=1 while (X<2): X=X+1 E=E*X Print(E)
| [1]
|
|
|