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