Coding Quiz
Level 3, 2025-11-17
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=1 B=7 if A == B: Print("Yes") else: Print("No")
| [1]
|
|
def Hello(F) Z="Hi " + F Print(Z)
Hello("Felix")
| [1]
|
|
X=0 Y=1 while (X<3): X=X+1 Y=Y*X Print(Y)
| [1]
|
|
if True: Print(1) elif True: Print(2) else: Print(3)
| [1]
|
|
X=1 if E != 5: Print("Yes") else: Print("No")
| [1]
|
|
def Hello(B) Y="Hi " + B
Hello("Jenny")
| [1]
|
|
Z=True Y=False if Z != False: Print(1) elif Y != True: Print(2) else: Print(3)
| [1]
|
|
def DoSum(VAR,E) Q=VAR + E return Q
DoSum(7,7) Print(Q)
| [1]
|
|
def Hello(VAR,type) if (type=="good"): Q="Hi " else: Q="Bye" Print(Q+" "+VAR)
Hello("Felix","good")
| [1]
|
|
def DoSum(B,F) VAR=B + F Print(VAR)
DoSum(7,6)
| [1]
|
|
def DoSum(F,Y) Q=F - Y return Q
DoSum(4,6) Print(Q)
| [1]
|
|
F=8 Print(F)
def MyFunction (F): F=F+6 Print(F)
MyFunction(2) Print(F+1)
| [1]
|
|
def Hello(Q,type) if (!Q) return if (type=="good"): Z="Hi " elif (type=="bad"): Z="Boo " else: Z="Bye" return Z + " " + Q
VAR = Hello("Missy","bad") Print(VAR)
| [1]
|
|
VAR=7 X=2 Z=VAR + X Print(Z)
| [1]
|
|
|
|
|
|