Coding Quiz
Level 3, 2026-04-09
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(F,X) Y=F - X return Y
DoSum(2,2) Print(Y)
| [1]
|
|
#Print("A") Print("B") #Print("C")
| [1]
|
|
def Hello(B,type) if (type=="good"): VAR="Hi " else: VAR="Bye" Print(VAR+" "+B)
Hello("Felix","bad")
| [1]
|
|
|
|
def Hello(X) F="Hi " + X
Hello("Melissa")
| [1]
|
|
def DoSum(A,VAR) Q=A * VAR Print(Q)
DoSum(2,8)
| [1]
|
|
def Hello(B,type) if (type=="good"): E="Hi " elif (type=="bad"): E="Boo " else: E="Bye" Print(E+" "+B)
Hello("Mongo","ok")
| [1]
|
|
|
def DoSum(A,B) F=A - B return F
Y=DoSum(8,7) Print(F)
| [1]
|
|
|
def DoSum(Y,B,F) Q=F - Y - B Print(Q)
DoSum(5,9,2)
| [1]
|
|
def DoSum(B,Q,A) Y=Q * A * B Print(Y)
DoSum(7,7,8)
| [1]
|
|
if True: Print(1) elif True: Print(2) else: Print(3)
| [1]
|
|
def Hello(Q,type) if (type=="good"): Y="Hi " else: Y="Bye" Print(Y+" "+Q)
Hello("Edward","bad")
| [1]
|
|
|
|
def DoSum(Q,X) Z=Q - X return Z
E=DoSum(2,4) Print(Z)
| [1]
|
|
|
B=6 if B < 6: Print("Yes") else: Print("No")
| [1]
|
|
|