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