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