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