250+ TOP MCQs on Number Theory – Complement of a Number

Discrete Mathematics Question Bank on “Number Theory – Complement of a Number”.

1. One’s complement in binary is defined as _________
a) Flipping each binary bit
b) Adding one to the binary number
c) Flipping only bits having zero in it
d) None of the mentioned

Answer: a
Clarification: While taking 1’s complement we replace 1 with zero and vice versa.

2. What is the one’s complement of the number 1010110?
a) 1111111
b) 0101001
c) 1100110
d) None of the mentioned

Answer: b
Clarification: While taking 1’s complement we replace 1 with zero and vice versa.

3. One’s complement of a number x is y, then one’s complement of y is?
a) y
b) x
c) x + y
d) None of the mentioned

Answer: b
Clarification: Complement of Complement of number gives the same number.

4. Nine’s complement of a number is formed by _________
a) replacing each digit by 9 minus that digit
b) replacing each digit by 1plus that digit
c) replacing each digit by 8 minus that digit
d) None of the mentioned

Answer: a
Clarification: Nine’s complement of a number is formed by replacing each digit by 9 minus that digit.

5. Radix complement can be obtained fromdiminished radix’s complement by _________
a) Adding one to diminished radox’s complement
b) Subtracting one to diminished radox’s complement
c) Both are same things
d) None of the mentioned

Answer: a
Clarification: Radix complement = diminished radix complement +1.

6. In binary signed representation if most significant bit is one then that number is positive.
a) True
b) False

Answer: b
Clarification: In signed representation, if the most significant bit is one then that number is negative, for positive numbers msb = 0.

  250+ TOP MCQs on Number Theory - Primes and Greatest Common Divisors

7. In signed representation 5 is represented in binary as 0101.
a) True
b) False

Answer: a
Clarification: Here msb is the signed bit which is zero, 101 evaluates to 5 hence it is +5.

8. The two’s complement of 101110100 is represented as?
a) 010001100
b) 101110101
c) 010001100
d) None of the mentioned

Answer: a
Clarification: 2’s complement = 1’s complement +1, 1’s complement = 010001011.

9. 9’s complement of 23456 is?
a) 87654
b) 76543
c) 12345
d) none of the mentioned

Answer: b
Clarification: Nine’s complement of a number is formed by replacing each digit by 9 minus that digit.

10. Decimal equivalent of one’s complement of 11111001 is?
a) 5
b) 6
c) 4
d) 10

Answer: b
Clarification: One’s complement of that number is 00000110 which is 6 in decimal.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top