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