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