Question:
What is the 2’s complement representation of the decimal number -27 in an 8-bit register?
एक 8-बिट रजिस्टर में दशमलव संख्या -27 का 2’s कॉम्प्लिमेंट (पूरक) निरूपण क्या होगा?
Options:
- 11100101
- 11100100
- 00011011
- 11011011
- 11100101
- 11100100
- 00011011
- 11011011
Correct Answer: a)
Explanation:
1. Positive 27 in 8-bit binary: \(27 = 16 + 8 + 2 + 1 = 00011011_2\).
2. 1’s complement (invert bits): \(11100100_2\).
3. 2’s complement (add 1): \(11100100 + 1 = 11100101_2\) (Option a).
1. +27 का 8-बिट बाइनरी: \(00011011_2\).
2. 1’s पूरक (उलटने पर): \(11100100_2\).
3. 2’s पूरक (+1 जोड़ने पर): \(11100101_2\) (विकल्प a)।