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