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