Computer AwarenessHardSSC CGL · IBPS PO Mains
What is the sum of the largest value a 4-bit UNSIGNED number can hold and the smallest value a 4-bit TWO'S-COMPLEMENT number can hold?
- A. 23
- B. 7
- C. −1
- D. 8
Correct answer: B. 7
Unsigned 4 bits go up to 1111 = 15; 4-bit two's complement goes down to 1000 = −8; 15 + (−8) = 7. Taking −7 or +8 by mistake gives 8 or 23.
हिंदी में
4-बिट अचिह्नित संख्या के सबसे बड़े मान और 4-बिट टू’ज़-कॉम्प्लिमेंट संख्या के सबसे छोटे मान का योग क्या है?
- A. 23
- B. 7
- C. −1
- D. 8
उत्तर: B. 4 बिट अचिह्नित 1111 = 15 तक जाता है; 4-बिट टू’ज़ कॉम्प्लिमेंट 1000 = −8 तक नीचे जाता है; 15 + (−8) = 7। भूल से −7 या +8 लेने पर 8 या 23 आता है।
More Computer Awareness questions
- A cache takes 5 ns per access and main memory 80 ns. The cache is always checked first, and on a miss main memory is then read, so a miss…
- A direct-mapped cache has 128 lines. Main-memory block number 1000 is placed in which cache line (lines numbered from 0)?
- A 64 KB direct-mapped cache uses 16-byte blocks, and the processor issues 32-bit byte addresses. How is each address split?
- Which cache-mapping technique lets any memory block be placed in any cache line, at the cost of comparing its tag with every line at once?
- A loop counter is read and updated on every pass of a loop, and so it stays in the cache. Which property of programs does this exploit?
- When the CPU reads a word from main memory, which two registers hold the address being accessed and the data that arrives?