Coding Quiz
Level 4, 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
Z="f"
E="D"
Print(Z+E)
[1]
E=9
Print(E)

def MyFunction (E):
    E=E+6
    Print(E)

MyFunction(5)
Print(E+8)

[1]
B="D"
Q="A"
Print(B+"Q")
[1]
A = "A"
B = "A"
E = 5
B = 7
Z = B+"E"
Print(Z)
[1]
def Hello(Q)
  E="Hi " + Q

Hello("Flip")
[1]
def doThis(X):
    X=X - 6
    return X

def doThat(Z):
    Y=Z + 6
    return Y

E = doThat(1)
E = doThis(E)
Print(E)
[2]
Q=6
Z=2
A=Q + Z
Print(A)
[1]
if True:
    Print(1)
elif True:
    Print(2)
else:
    Print(3)
[1]
F = ""
Z = "A"
Q = 9
B = 5
if Z<F:
    Print(1)
elif F<B:
    Print(2)
elif B<Z:
    Print(3)
else:
    Print(4)
[1]
A = "2"
X = "!"
X = 4
Q = 8
E = X+"X"
Print(E)
[1]
def doThis(Z):
    B=Z + 3
    return B

def doThat(X):
    F=X - 6
    return F

A = doThis(9)
A = doThat(A)
Print(A)
[2]
def doThis(B):
    Y=B + 4
    Y = doThat(Y)
    return Y

def doThat(Q):
    X=Q + 5
    return X

E = doThis(5)
E = doThis(E)
Print(E)
[2]
A = "X"
Q = "B"
E = 7
Z = 9
Q = "Z"+A
Print(Q)
[1]
def doThis(E):
    B=E + 8
    B = doThat(B)
    return B

def doThat(Z):
    B=Z + 3
    return B

F = doThis(6)
Print(F)
[2]
def doThis(B):
    X=B - 4
    return X

def doThat(VAR):
    A=VAR - 5
    return A

A = doThat(7)
A = doThis(A)
Print(A)
[2]