Coding Quiz
Level 2, 2025-07-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
VAR=5 E=1 if VAR >= E: Print("Yes") else: Print("No")
| [1]
|
|
F=True A=True if F != True: Print(1) elif A != False: Print(2) else: Print(3)
| [1]
|
|
def Hello(Q) Z="Hi " + Q
Hello("Missy")
| [1]
|
|
|
Y=0 VAR=0 while (Y<3): Y=Y+1 VAR=VAR+9 Print(Y+","+VAR)
| [1]
|
|
|
E=False F=True if E != True: Print(1) elif F != True: Print(2) else: Print(3)
| [1]
|
|
def Hello(A) E="Hi " + A
Hello("Flip")
| [1]
|
|
B=0 E=0 while (B<1): B=B+1 E=E+1 Print(B+","+E)
| [1]
|
|
def DoSum(E,Z) A=E - Z return A
DoSum(5,1) Print(A)
| [1]
|
|
Y=0 X=0 while (Y<1): Y=Y+1 X=X+1 Print(Y+","+X)
| [1]
|
|
Q="c" VAR="B" Print(Q+VAR)
| [1]
|
|
if (False and True): Print(1) elif (False or True): Print(2) else: Print(3)
| [1]
|
|
A=5 Z=1 if A == Z: Print("Yes") else: Print("No")
| [1]
|
|
|
B=0 Y=0 while (B<7): B=B+1 Y=Y+9 Print(B+","+Y)
| [1]
|
|
Print("A") #Print("B") Print("C")
| [1]
|
|
X=5 F=6 if X == F: Print("Yes") else: Print("No")
| [1]
|
|
def Hello(E,type) if (type=="good"): X="Hi " else: X="Bye" Print(X+" "+E)
Hello("Julie","bad")
| [1]
|
|
def Hello(F,type) if (type=="good"): E="Hi " else: E="Bye" Print(E+" "+F)
Hello("Jenny","bad")
| [1]
|
|
|