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