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