Coding Quiz
Level 2, 2026-04-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
E=7 Print(E)
def MyFunction (E): E=E+1 Print(E)
MyFunction(8) Print(E+6)
| [1]
|
|
def Hello(F,type) if (type=="good"): E="Hi " elif (type=="bad"): E="Boo " else: E="Bye" Print(E+" "+F)
Hello("Max","bad")
| [1]
|
|
Print("A") Print("B") #Print("C")
| [1]
|
|
Q=True B=True if Q == True: Print(1) elif B == False: Print(2) else: Print(3)
| [1]
|
|
def DoSum(A,Y) F=A + Y Print(F)
DoSum(9,2)
| [1]
|
|
Z=0 E=1 while (Z<4): Z=Z+1 E=E*Z Print(E)
| [1]
|
|
B=6 Print(B)
def MyFunction (B): B=B+3 Print(B)
MyFunction(3) Print(B+3)
| [1]
|
|
|
if True: Print(1) elif True: Print(2) else: Print(3)
| [1]
|
|
def Hello(X) B="Hi " + X
Hello("Jenny")
| [1]
|
|
|
|
E="C" Y="c" Print(E+"Y")
| [1]
|
|
X=False F=False if X != False: Print(1) elif F == True: Print(2) else: Print(3)
| [1]
|
|
def Hello(F,type) if (type=="good"): VAR="Hi " elif (type=="bad"): VAR="Boo " else: VAR="Bye" Print(VAR+" "+F)
Hello("Edward","ok")
| [1]
|
|
|
def Hello(B,type) if (type=="good"): X="Hi " else: X="Bye" Print(X+" "+B)
Hello("Mongo","bad")
| [1]
|
|
B=8 Print(B)
def MyFunction (B): B=B+6 Print(B)
MyFunction(7) Print(B+9)
| [1]
|
|
def DoSum(Y,Q,A) X=A + Q * Y Print(X)
DoSum(4,6,7)
| [1]
|
|
def DoSum(F,E) B=F * E return B
DoSum(4,4) Print("B")
| [1]
|
|
|