Computer AwarenessVery hardIBPS SO IT · IBPS PO Mains
Two 8-bit two's-complement numbers, 01100100 (100) and 00110010 (50), are added. What does the 8-bit result hold?
- A. 10010110, which reads as −106: an overflow has occurred
- B. 10010110, which reads as 150: no overflow
- C. 01111111: the result is held at the maximum, 127
- D. 00010110 with a carry out of 1, which reads as 22
Correct answer: A. 10010110, which reads as −106: an overflow has occurred
The sum 150 exceeds the 8-bit signed maximum of 127. The bits 10010110 are produced, which in two's complement mean 150 − 256 = −106; adding two positives and getting a negative is the sign of overflow.
हिंदी में
दो 8-बिट टू’ज़-कॉम्प्लिमेंट संख्याएँ, 01100100 (100) और 00110010 (50), जोड़ी जाती हैं। 8-बिट परिणाम में क्या होता है?
- A. 10010110, जो −106 पढ़ा जाता है: ओवरफ़्लो हुआ है
- B. 10010110, जो 150 पढ़ा जाता है: कोई ओवरफ़्लो नहीं
- C. 01111111: परिणाम अधिकतम 127 पर रोक दिया जाता है
- D. 00010110 और कैरी-आउट 1, जो 22 पढ़ा जाता है
उत्तर: A. योग 150, 8-बिट चिह्नित अधिकतम 127 से अधिक है। बिट 10010110 बनते हैं, जिनका टू’ज़ कॉम्प्लिमेंट में अर्थ 150 − 256 = −106 है; दो धनात्मक संख्याएँ जोड़ने पर ऋणात्मक मिलना ओवरफ़्लो का संकेत है।
More Computer Awareness questions
- In a half adder, which gates produce the Sum and the Carry outputs?
- For how many of the 8 possible combinations of the inputs A, B and C does the circuit (A NAND B) NOR C output 1?
- Twenty-four PCs are connected one to a port on a 24-port switch with no VLANs configured. How many collision domains and how many…
- Bank staff working from home need to reach the office network over the public internet, with all traffic encrypted as if they were inside…
- A bank rents virtual machines, storage and network capacity from a cloud provider, then installs and manages its own operating system and…
- Match the IEEE standard with the technology: 1. IEEE 802.3 2. IEEE 802.11 3. IEEE 802.15; a. Wireless LAN (Wi-Fi) b. Wired Ethernet c…