Coding Quiz
Level 2, 2026-04-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(A,Q,Z) VAR=A + Q + Z Print(VAR)
DoSum(6,2,8)
| [1]
|
|
|
|
A="c" X="E" Print("A"+X)
| [1]
|
|
def DoSum(E,Y) VAR=E - Y return VAR
F=DoSum(9,2) Print(F)
| [1]
|
|
def Hello(VAR,type) if (type=="good"): Y="Hi " elif (type=="bad"): Y="Boo " else: Y="Bye" Print(Y+" "+VAR)
Hello("Julie","bad")
| [1]
|
|
def Hello(A) F="Hi " + A Print(F)
Hello("Jenny")
| [1]
|
|
|
|
def Hello(F,type) if (!F) return if (type=="good"): Q="Hi " elif (type=="bad"): Q="Boo " else: Q="Bye" return Q + " " + F
X = Hello("good","Mongo") Print(X)
| [1]
|
|
if False: Print(1) elif False: Print(2) else: Print(3)
| [1]
|
|
def Hello(Z,type) if (!Z) return if (type=="good"): Y="Hi " elif (type=="bad"): Y="Boo " else: Y="Bye" return Y + " " + Z
Z = Hello("","good") Print(Z)
| [1]
|
|
VAR="b" VAR="9" Print(VAR)
| [1]
|
|
def Hello(Z,type) if (!Z) return if (type=="good"): X="Hi " elif (type=="bad"): X="Boo " else: X="Bye" return X + " " + Z
Q = Hello("bad","Flip") Print(Q)
| [1]
|
|
|
X=0 while (X<0): X=X+1 Print("X")
| [1]
|
|
E=0 while (E<2): E=E+1 Print("X")
| [1]
|
|
def Hello(E,type) if (type=="good"): A="Hi " elif (type=="bad"): A="Boo " else: A="Bye" Print(A+" "+E)
Hello("Mongo","bad")
| [1]
|
|
E=3 Print(E)
def MyFunction (E): E=E+1 Print(E)
MyFunction(3) Print(E+7)
| [1]
|
|
Z=7 if Z < 5: Print("Yes") else: Print("No")
| [1]
|
|
|