Let a = 5 (101 in binary) and b = 3 (011 in binary). Which of the following operations results in the values 7 and 1?

Let a = 5 (101 in binary) and b = 3 (011 in binary). Which of the following operations results in the values 7 and 1?

a. a or b ; a and b
b. a | b ; a & b
c. not b ; b and a
d. a and b ; a or b

Answer:- b

For More NPTEL Answers:- CLICK HERE

Join Our Telegram:- CLICK HERE

For All Answers of Week 1:- Python For Data Science NPTEL Assignment Solutions Week 1 Answers


Leave a Comment