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