Question: Let 1 represent true and 0 represent false. The function ExclusiveDisjunction ( ) , whose incomplete code is given below, computes p q: def ExclusiveDisjunction
Let represent true and represent false. The function ExclusiveDisjunction whose incomplete code is given below, computes pq:
def ExclusiveDisjunctionpq:
#FIX ME#
return
else:
return
What should the line of code which contains the expression #FIX ME# be replaced with in order to complete the code?
Question options:
if p q:
if p q:
if p and q :
if p and q :
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
