← 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?
- A.It needs a separate subtractor circuit
- B.It adds A to NOT B and sets the first carry-in to 1
- C.It shifts B left by one bit
- 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 →