Coding Quiz
Level 2, 2026-10-28
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,Y) Q=VAR + Y return Q
X=DoSum(9,8) Print(X)
| [1]
|
|
Q="a" B="G" Print("Q"+B)
| [1]
|
|
def DoSum(A,VAR) B=A + VAR return B
DoSum(2,1) Print("B")
| [1]
|
|
|
|
|
A=False F=False if A == False: Print(1) elif F == False: Print(2) else: Print(3)
| [1]
|
|
Print("A") #Print("B") #Print("C")
| [1]
|
|
E="D" A="B" Print("E"+A)
| [1]
|
|
|
VAR=9 Q=3 if VAR < Q: Print("Yes") else: Print("No")
| [1]
|
|
def Hello(E,type) if (type=="good"): F="Hi " elif (type=="bad"): F="Boo " else: F="Bye" Print(F+" "+E)
Hello("Mongo","bad")
| [1]
|
|
Y=1 if Y < 2: Print("Yes") else: Print("No")
| [1]
|
|
|
Q=False E=False if Q == False: Print(1) elif E != True: Print(2) else: Print(3)
| [1]
|
|
|
B=3 if B < 6: Print("Yes") else: Print("No")
| [1]
|
|
F=5 if F <= 2: Print("Yes") else: Print("No")
| [1]
|
|
VAR=9 if VAR > 4: Print("Yes") else: Print("No")
| [1]
|
|
Q=5 Print(Q)
def MyFunction (Q): Q=Q+7 Print(Q)
MyFunction(3) Print(Q+1)
| [1]
|
|
|