Coding Quiz
Level 2, 2026-03-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(VAR) Y="Hi " + VAR Print(Y)
Hello("Mike")
| [1]
|
|
|
|
VAR=5 Print(VAR)
def MyFunction (VAR): VAR=VAR+9 Print(VAR)
MyFunction(6) Print(VAR+6)
| [1]
|
|
VAR=True F=True if VAR != True: Print(1) elif F != True: Print(2) else: Print(3)
| [1]
|
|
def Hello(F,type) if (!F) return if (type=="good"): A="Hi " elif (type=="bad"): A="Boo " else: A="Bye" return A + " " + F
F = Hello("bad","Jenny") Print(F)
| [1]
|
|
|
Z=0 F="" while (Z<3): Z=Z+1 F=F+"X" Print(F)
| [1]
|
|
|
#Print("A") #Print("B") Print("C")
| [1]
|
|
|
|
def Hello(Z,type) if (!Z) return if (type=="good"): Y="Hi " elif (type=="bad"): Y="Boo " else: Y="Bye" return Y + " " + Z
E = Hello("","ok") Print(E)
| [1]
|
|
def DoSum(Q,Z,B) Y=Q + B - Z Print(Y)
DoSum(1,5,5)
| [1]
|
|
if True: Print(1) elif True: Print(2) else: Print(3)
| [1]
|
|
|
A=5 if VAR != 2: Print("Yes") else: Print("No")
| [1]
|
|
B=0 X=0 while (B<8): B=B+1 X=X+3 Print(B+","+X)
| [1]
|
|
def Hello(X,type) if (type=="good"): Z="Hi " elif (type=="bad"): Z="Boo " else: Z="Bye" Print(Z+" "+X)
Hello("Edward","bad")
| [1]
|
|
|
|