Which of the following statement is correct regarding complements? I.…
2023
Which of the following statement is correct regarding complements?
I. Complements are used in digital computers for simplifying the subtraction operation and for logical manipulations. II. There are two types of complements for each base-r system: the r's complement and (r-1)'s complement.
- A.
Both I and II
- B.
Only I
- C.
Neither I nor II
- D.
Only II
Attempted by 95 students.
Show answer & explanation
Correct answer: A
Complements are used in digital computers to simplify subtraction and logical manipulation.
For a base-r system, the standard complements are the r's complement and the (r - 1)'s complement.
Therefore, both statements are correct.