Coding Quiz
Level 3, 2025-12-17
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
|
Z=0 VAR=0 while (Z<2): Z=Z+1 VAR=VAR+7 Print(Z+","+VAR)
| [1]
|
|
def DoSum(Z,Y) A=Z - Y return A
Z=DoSum(5,5) Print(A)
| [1]
|
|
def Hello(Q,type) if (type=="good"): B="Hi " else: B="Bye" Print(B+" "+Q)
Hello("Felix","bad")
| [1]
|
|
VAR=0 Q="" while (VAR<9): VAR=VAR+1 Q=Q+"X" Print(Q)
| [1]
|
|
def Hello(VAR) F="Hi " + VAR
Hello("Octavian")
| [1]
|
|
def Hello(X) Y="Hi " + X
Hello("Missy")
| [1]
|
|
|
def Hello(Z) X="Hi " + Z Print(X)
Hello("Edward")
| [1]
|
|
F=2 if F <= 3: Print("Yes") else: Print("No")
| [1]
|
|
X=3 VAR=3 if X < VAR: Print("Yes") else: Print("No")
| [1]
|
|
E=0 while (E<0): E=E+1 Print("X")
| [1]
|
|
def Hello(Z,type) if (type=="good"): A="Hi " elif (type=="bad"): A="Boo " else: A="Bye" Print(A+" "+Z)
Hello("Mongo","good")
| [1]
|
|
def Hello(B) E="Hi " + B
Hello("Missy")
| [1]
|
|
|
Q=0 Y=1 while (Q<8): Q=Q+1 Y=Y*Q Print(Y)
| [1]
|
|
def Hello(B,type) if (type=="good"): Z="Hi " elif (type=="bad"): Z="Boo " else: Z="Bye" Print(Z+" "+B)
Hello("Max","bad")
| [1]
|
|
VAR=7 F=7 A=VAR * F Print(A)
| [1]
|
|
Z=4 F=9 if Z <= F: Print("Yes") else: Print("No")
| [1]
|
|
def DoSum(Y,F,B) VAR=F + B * Y Print(VAR)
DoSum(7,8,5)
| [1]
|
|
|