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