Coding Quiz
Level 3, 2026-06-06
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
Y=False A=False if Y != False: Print(1) elif A != False: Print(2) else: Print(3)
| [1]
|
|
def Hello(Z,type) if (type=="good"): B="Hi " elif (type=="bad"): B="Boo " else: B="Bye" Print(B+" "+Z)
Hello("Melissa","good")
| [1]
|
|
def Hello(E,type) if (type=="good"): Y="Hi " elif (type=="bad"): Y="Boo " else: Y="Bye" Print(Y+" "+E)
Hello("Flip","good")
| [1]
|
|
X=3 if X <= 7: Print("Yes") else: Print("No")
| [1]
|
|
Q=0 while (Q<2): Q=Q+1 Print("X")
| [1]
|
|
def DoSum(E,VAR) B=E * VAR Print(B)
DoSum(1,4)
| [1]
|
|
def DoSum(VAR,A) Q=VAR + A Print(Q)
DoSum(8,6)
| [1]
|
|
A="c" X="g" Print(A+"X")
| [1]
|
|
def Hello(Z,type) if (!Z) return if (type=="good"): F="Hi " elif (type=="bad"): F="Boo " else: F="Bye" return F + " " + Z
Z = Hello("Max","bad") Print(Z)
| [1]
|
|
|
|
VAR="7" VAR="G" Print(VAR)
| [1]
|
|
def Hello(B,type) if (type=="good"): X="Hi " elif (type=="bad"): X="Boo " else: X="Bye" Print(X+" "+B)
Hello("Jenny","ok")
| [1]
|
|
Z=0 Q=1 while (Z<7): Z=Z+1 Q=Q*Z Print(Q)
| [1]
|
|
|
|
def Hello(VAR,type) if (!VAR) return if (type=="good"): E="Hi " elif (type=="bad"): E="Boo " else: E="Bye" return E + " " + VAR
E = Hello("Edward","good") Print(E)
| [1]
|
|
|
E="c" A="e" Print(E+"A")
| [1]
|
|
def Hello(A,type) if (type=="good"): Y="Hi " else: Y="Bye" Print(Y+" "+A)
Hello("Missy","bad")
| [1]
|
|
|