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