Question 6
Consider the following Python code:
def process(x, y):
if x > y:
return x - y
elif x < y:
return y - x
else:
return x + y
def compute(a, b):
result = process(a, b)
if result % 2 == 0:
return "Even"
else:
return "Odd"
Which of the following statements is/are true?
If x = 5 and y = 2, then output will be Odd
If x = 4 and y = 8, then output will be Even
If x = 3 and y = 3, then output will be Odd
If x = 10 and y = 5, then output will be Even