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