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