Coding Quiz
Level 2, 2026-11-26
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(F,type) if (type=="good"): VAR="Hi " else: VAR="Bye" Print(VAR+" "+F)
Hello("Jenny","bad")
| [1]
|
|
Q=False VAR=False if Q != False: Print(1) elif VAR == True: Print(2) else: Print(3)
| [1]
|
|
def Hello(VAR,type) if (type=="good"): X="Hi " elif (type=="bad"): X="Boo " else: X="Bye" Print(X+" "+VAR)
Hello("Missy","ok")
| [1]
|
|
def Hello(A,type) if (!A) return if (type=="good"): Q="Hi " elif (type=="bad"): Q="Boo " else: Q="Bye" return Q + " " + A
Q = Hello("","bad") Print(Q)
| [1]
|
|
|
def Hello(F,type) if (type=="good"): B="Hi " elif (type=="bad"): B="Boo " else: B="Bye" Print(B+" "+F)
Hello("Jenny","ok")
| [1]
|
|
Y=7 if Y >= 2: Print("Yes") else: Print("No")
| [1]
|
|
def DoSum(Y,E) X=Y - E Print(X)
DoSum(8,5)
| [1]
|
|
def DoSum(Z,Y) E=Z + Y Print(E)
DoSum(7,4)
| [1]
|
|
def DoSum(E,B) Q=E - B return Q
DoSum(2,9) Print("Q")
| [1]
|
|
|
E=True Y=True if E != True: Print(1) elif Y != True: Print(2) else: Print(3)
| [1]
|
|
def DoSum(E,VAR) Q=E + VAR return Q
B=DoSum(8,3) Print(Q)
| [1]
|
|
Q=False F=False if Q != True: Print(1) elif F == True: Print(2) else: Print(3)
| [1]
|
|
def Hello(B) Q="Hi " + B Print(Q)
Hello("Jenny")
| [1]
|
|
def Hello(X) F="Hi " + X
Hello("Melissa")
| [1]
|
|
VAR="1" VAR="f" Print(VAR)
| [1]
|
|
|
|
def DoSum(A,Q,E) Z=Q + A - E Print(Z)
DoSum(6,8,8)
| [1]
|
|
|