Coding Quiz
Level 3, 2025-09-16
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
|
A=0 Q=1 while (A<1): A=A+1 Q=Q*A Print(Q)
| [1]
|
|
|
Z=8 if Q > 9: Print("Yes") else: Print("No")
| [1]
|
|
def DoSum(X,F) Y=X - F return Y
DoSum(9,8) Print("Y")
| [1]
|
|
def Hello(E) VAR="Hi " + E
Hello("Jenny")
| [1]
|
|
|
def Hello(F,type) if (type=="good"): X="Hi " else: X="Bye" Print(X+" "+F)
Hello("Melissa","good")
| [1]
|
|
Print("A") Print("B") #Print("C")
| [1]
|
|
|
VAR="g" F="E" Print(VAR+"F")
| [1]
|
|
Z=0 X="" while (Z<5): Z=Z+1 X=X+"X" Print(X)
| [1]
|
|
|
|
|
def Hello(Q,type) if (type=="good"): Y="Hi " else: Y="Bye" Print(Y+" "+Q)
Hello("Felix","bad")
| [1]
|
|
Y=8 if Y > 6: Print("Yes") else: Print("No")
| [1]
|
|
def DoSum(A,X,F) E=A - X + F Print(E)
DoSum(2,6,2)
| [1]
|
|
def DoSum(Q,Z) Y=Q + Z return Y
B=DoSum(5,3) Print(Y)
| [1]
|
|
def Hello(B,type) if (!B) return if (type=="good"): A="Hi " elif (type=="bad"): A="Boo " else: A="Bye" return A + " " + B
A = Hello("Octavian","bad") Print(A)
| [1]
|
|
|