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