🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Computer Arithmetic: all 10 questions

Quiz: Computer Arithmetic · Question 7 of 10

How does the same adder circuit compute A − B?

How does the same adder circuit compute A − B?

  1. A.It needs a separate subtractor circuit
  2. B.It adds A to NOT B and sets the first carry-in to 1
  3. C.It shifts B left by one bit
  4. D.It adds A and B and inverts the result
Answer & explanation

Correct answer: It adds A to NOT B and sets the first carry-in to 1

A − B = A + (2's complement of B) = A + NOT B + 1.

Can you get the rest right without peeking?

Take the timed Quiz: Computer Arithmetic quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →