Coding Quiz
Level 3, 2026-07-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
def DoSum(VAR,A) E=VAR - A return E
DoSum(8,6) Print("E")
| [1]
|
|
|
VAR=0 Q=1 while (VAR<6): VAR=VAR+1 Q=Q*VAR Print(Q)
| [1]
|
|
X=True Q=False if X == True: Print(1) elif Q != False: Print(2) else: Print(3)
| [1]
|
|
def DoSum(E,Q,Y) X=Q - Y + E Print(X)
DoSum(9,6,9)
| [1]
|
|
def Hello(Z) F="Hi " + Z Print(F)
Hello("Octavian")
| [1]
|
|
Y=True F=False if Y == False: Print(1) elif F != False: Print(2) else: Print(3)
| [1]
|
|
Q=True E=False if Q != False: Print(1) elif E != True: Print(2) else: Print(3)
| [1]
|
|
def Hello(X) E="Hi " + X
Hello("Edward")
| [1]
|
|
def DoSum(F,E,Q) B=F * Q + E Print(B)
DoSum(2,7,3)
| [1]
|
|
def Hello(Z,type) if (type=="good"): X="Hi " elif (type=="bad"): X="Boo " else: X="Bye" Print(X+" "+Z)
Hello("Max","bad")
| [1]
|
|
B=True E=False if B != False: Print(1) elif E == True: Print(2) else: Print(3)
| [1]
|
|
if False: Print(1) elif False: Print(2) else: Print(3)
| [1]
|
|
E=False Q=True if E != True: Print(1) elif Q == True: Print(2) else: Print(3)
| [1]
|
|
if True: Print(1) elif True: Print(2) else: Print(3)
| [1]
|
|
def DoSum(Y,E) A=Y * E Print(A)
DoSum(1,1)
| [1]
|
|
def DoSum(Q,B,E) X=Q - E * B Print(X)
DoSum(5,9,1)
| [1]
|
|
|
|
E=0 Q=0 while (E<7): E=E+1 Q=Q+8 Print(E+","+Q)
| [1]
|
|
|