KnowledgeBoat Logo

Computer Science

Given three Boolean variables a, b, c as : a = False, b = True, c = False. Evaluate the following Boolean expressions:

(a) b and c

(b) b or c

(c) not a and b

(d) (a and b) or not c

(e) not b and not (a or c)

(f) not ((not b or not a) and c) or a

Python Data Handling

37 Likes

Answer

(a) b and c
     ⇒ False and True
     ⇒ False

(b) b or c
     ⇒ True or False
     ⇒ True

(c) not a and b
     ⇒ not False and True
     ⇒ True and True
     ⇒ True

(d) (a and b) or not c
     ⇒ (False and True) or not False
     ⇒ False or not False
     ⇒ False or True
     ⇒ True

(e) not b and not (a or c)
     ⇒ not True and not (False or False)
     ⇒ not True and not False
     ⇒ False and True
     ⇒ False

(f) not ((not b or not a) and c) or a
     ⇒ not ((not True or not False) and False) or False
     ⇒ not ((False or True) and False) or False
     ⇒ not (True and False) or False
     ⇒ not False or False
     ⇒ True or False
     ⇒ True

Answered By

25 Likes


Related Questions