Coding Quiz
Level 2, 2026-04-07
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
|
Q=1 Print(Q)
def MyFunction (Q): Q=Q+9 Print(Q)
MyFunction(7) Print(Q+2)
| [1]
|
|
|
A="g" Q="F" Print(A+"Q")
| [1]
|
|
def Hello(E,type) if (type=="good"): Y="Hi " else: Y="Bye" Print(Y+" "+E)
Hello("Flip","good")
| [1]
|
|
|
|
|
def DoSum(Z,VAR,Q) B=VAR + Q + Z Print(B)
DoSum(4,9,5)
| [1]
|
|
A=8 if VAR < 3: Print("Yes") else: Print("No")
| [1]
|
|
|
|
if (False and False): Print(1) elif (False or False): Print(2) else: Print(3)
| [1]
|
|
X=1 F=1 if X >= F: Print("Yes") else: Print("No")
| [1]
|
|
X=9 Print(X)
def MyFunction (X): X=X+4 Print(X)
MyFunction(6) Print(X+3)
| [1]
|
|
A=0 VAR=0 while (A<4): A=A+1 VAR=VAR+1 Print(A+","+VAR)
| [1]
|
|
def DoSum(A,B,VAR) X=B + VAR + A Print(X)
DoSum(5,1,8)
| [1]
|
|
Y=0 E=0 while (Y<3): Y=Y+1 E=E+9 Print(Y+","+E)
| [1]
|
|
def DoSum(X,VAR,A) Z=X * A + VAR Print(Z)
DoSum(2,8,4)
| [1]
|
|
def DoSum(X,B,E) F=X + B - E Print(F)
DoSum(4,1,7)
| [1]
|
|
|