Coding Quiz
Level 3, 2026-11-21
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 Hello(Q) X="Hi " + Q Print(X)
Hello("Felix")
| [1]
|
|
def Hello(A,type) if (!A) return if (type=="good"): VAR="Hi " elif (type=="bad"): VAR="Boo " else: VAR="Bye" return VAR + " " + A
VAR = Hello("ok","Julie") Print(VAR)
| [1]
|
|
Q=8 if Q != 8: Print("Yes") else: Print("No")
| [1]
|
|
def DoSum(E,VAR) F=E - VAR return F
A=DoSum(1,6) Print(F)
| [1]
|
|
Y=5 Print(Y)
def MyFunction (Y): Y=Y+5 Print(Y)
MyFunction(7) Print(Y+5)
| [1]
|
|
Q=0 F=1 while (Q<9): Q=Q+1 F=F*Q Print(F)
| [1]
|
|
def Hello(X) Q="Hi " + X
Hello("Mongo")
| [1]
|
|
Y="c" Y="g" Print("Y"+Y)
| [1]
|
|
def DoSum(E,A) F=E * A Print(F)
DoSum(5,1)
| [1]
|
|
VAR=0 F="" while (VAR<5): VAR=VAR+1 F=F+"X" Print(F)
| [1]
|
|
def Hello(Z,type) if (type=="good"): Q="Hi " else: Q="Bye" Print(Q+" "+Z)
Hello("Missy","bad")
| [1]
|
|
def Hello(VAR,type) if (!VAR) return if (type=="good"): Q="Hi " elif (type=="bad"): Q="Boo " else: Q="Bye" return Q + " " + VAR
F = Hello("","bad") Print(F)
| [1]
|
|
X="e" Z="e" Print("X"+Z)
| [1]
|
|
|
def DoSum(Z,B) A=Z - B Print(A)
DoSum(6,7)
| [1]
|
|
|
Z=7 Print(Z)
def MyFunction (Z): Z=Z+6 Print(Z)
MyFunction(6) Print(Z+2)
| [1]
|
|
|
def DoSum(F,VAR) X=F * VAR return X
DoSum(4,7) Print("X")
| [1]
|
|
|