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