Coding Quiz
Level 2, 2026-02-25
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
if (True and False): Print(1) elif (True or False): Print(2) else: Print(3)
| [1]
|
|
Z=0 E=1 while (Z<9): Z=Z+1 E=E*Z Print(E)
| [1]
|
|
|
|
def Hello(Y) E="Hi " + Y
Hello("Octavian")
| [1]
|
|
|
def Hello(E,type) if (type=="good"): VAR="Hi " elif (type=="bad"): VAR="Boo " else: VAR="Bye" Print(VAR+" "+E)
Hello("Max","bad")
| [1]
|
|
def Hello(A) X="Hi " + A Print(X)
Hello("Melissa")
| [1]
|
|
|
def DoSum(X,Y) Q=X - Y Print(Q)
DoSum(2,2)
| [1]
|
|
E=1 F=1 if E == F: Print("Yes") else: Print("No")
| [1]
|
|
|
def Hello(E,type) if (type=="good"): B="Hi " elif (type=="bad"): B="Boo " else: B="Bye" Print(B+" "+E)
Hello("Melissa","good")
| [1]
|
|
E=0 B=0 while (E<9): E=E+1 B=B+5 Print(E+","+B)
| [1]
|
|
VAR="b" X="D" Print(X+VAR)
| [1]
|
|
B=1 if X > 4: Print("Yes") else: Print("No")
| [1]
|
|
Z=0 B=1 while (Z<9): Z=Z+1 B=B*Z Print(B)
| [1]
|
|
Q="B" VAR="B" Print(Q+"VAR")
| [1]
|
|
Y="F" F="g" Print(Y+"F")
| [1]
|
|
def DoSum(A,Q) E=A + Q return E
Y=DoSum(1,7) Print(E)
| [1]
|
|
|