Coding Quiz
Level 2, 2026-07-14
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
|
Y="e" VAR="D" Print(VAR+Y)
| [1]
|
|
def DoSum(Q,E) B=Q * E Print(B)
DoSum(8,6)
| [1]
|
|
|
F=0 Z="" while (F<2): F=F+1 Z=Z+"X" Print(Z)
| [1]
|
|
Z="b" Y="c" Print("Z"+Y)
| [1]
|
|
|
A="g" Q="g" Print("A"+Q)
| [1]
|
|
#Print("A") Print("B") Print("C")
| [1]
|
|
|
def DoSum(A,Q) F=A - Q Print(F)
DoSum(8,1)
| [1]
|
|
X="g" E="G" Print(X+"E")
| [1]
|
|
|
def Hello(F,type) if (!F) return if (type=="good"): Z="Hi " elif (type=="bad"): Z="Boo " else: Z="Bye" return Z + " " + F
B = Hello("good","Jenny") Print(B)
| [1]
|
|
VAR=3 E=3 if VAR <= E: Print("Yes") else: Print("No")
| [1]
|
|
|
A=3 Q=3 if A == Q: Print("Yes") else: Print("No")
| [1]
|
|
def DoSum(VAR,Y,X) Z=Y + VAR - X Print(Z)
DoSum(7,8,4)
| [1]
|
|
X=False VAR=True if X == True: Print(1) elif VAR != False: Print(2) else: Print(3)
| [1]
|
|
def Hello(B,type) if (type=="good"): Z="Hi " else: Z="Bye" Print(Z+" "+B)
Hello("Missy","bad")
| [1]
|
|
|