Skip to content
Question Bank (3 marks) · Q12

Q.For an 8-bit computer A=6 and B=7, find the

(i) bitwise ANDing of A and B,
(ii) bitwise ORing of A and B.
Karnataka PUCTextbookNumeric· 3mImportance★★★★★est
40% · 62/154 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

[!TLDR]

With A = 00000110 and B = 00000111, A & B = 6 and A | B = 7.

First express both numbers in 8-bit binary form:

A=6=00000110A = 6 = 00000110

B=7=00000111B = 7 = 00000111

(i) Bitwise AND (A & B) - a result bit is 1 only when both bits are 1:

  00000110   (A = 6)
& 00000111   (B = 7)
-----------
  00000110   = 6
``` …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.