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