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