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