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