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