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