Coding Quiz
Level 5, 2024-11-25
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
E = 3
A = 2
if E < 5:
    Print("1")
    if A != 3:
        Print("2")
    else:
        Print("3")
elif E > 9:
    Print("4")
    if A != 3:
        Print("5")
    else:
        Print("6")
else:
    Print("7")
    if A != 6:
        Print("8")
    else:
        Print("9")
[2]
def Hello(F,type)
    if (type=="good"):
        Y="Hi "
    elif (type=="bad"):
        Y="Boo "
    else:
        Y="Bye"
    Print(Y+" "+F)

Hello("Flip","bad")
[1]
A="4"
A="d"
Print(A+A)
[1]
Y=4
if B >= 9:
    Print("Yes")
else:
    Print("No")
[1]
E=0
Z=""
while (E<8):
    E=E+1
    Z=Z+"X"
Print(Z)

[1]
def Hello(B)
    A="Hi " + B
    Print(A)

Hello("Flip")
[1]
for B in [ "a","c" ]:
    Print(B)
[1]
VAR=True
F=True
if VAR != False:
    Print(1)
elif F == True:
    Print(2)
else:
    Print(3)
[1]
def Hello(B)
  Z="Hi " + B

Hello("Julie")
[1]
def doThis(VAR):
    B=VAR * 1
    B = doThat(B)
    return B

def doThat(VAR):
    F=VAR - 1
    return F

VAR = doThis(5)
Print(VAR)
[2]
F="c"
E="G"
Print("F"+E)
[1]
def DoSum(A,Z,E)
    X=A * Z + E
    Print(X)

DoSum(7,5,5)
[1]
X = 0
for Q in [ 4,3 ]:
    if (Q >= 3):
        X = X + Q
    else:
        X = X + 2
Print(X)
[2]
def doThis(F):
    A=F - 8
    return A

def doThat(VAR):
    B=VAR * 3
    return B

Q = doThis(6)
Q = doThat(Q)
Print(Q)
[2]
def Hello(VAR,type)
    if (!VAR) return
    if (type=="good"):
        F="Hi "
    elif (type=="bad"):
        F="Boo "
    else:
        F="Bye"
    return F + " " + VAR

Y = Hello("good","Octavian")
Print(Y)
[1]
B = "!"
A = "2"
B = 5
E = 9
A = A+B
Print(A)
[1]