Computer AwarenessVery hardIBPS SO IT Officer · SSC CGL
What is 0101 − 0111 in 4-bit two's-complement arithmetic?
- A. 1110
- B. 0010
- C. 1010
- D. 1101
Correct answer: A. 1110
Add the two's complement of 0111 (which is 1001): 0101 + 1001 = 1110, which is −2, matching 5 − 7. 0010 is +2, the sign error.
हिंदी में
4-बिट टू’ज़-कॉम्प्लिमेंट अंकगणित में 0101 − 0111 क्या है?
- A. 1110
- B. 0010
- C. 1010
- D. 1101
उत्तर: A. 0111 का टू’ज़ कॉम्प्लिमेंट (जो 1001 है) जोड़ें: 0101 + 1001 = 1110, जो −2 है, 5 − 7 से मेल खाता है। 0010 +2 है, जो चिह्न की भूल है।
More Computer Awareness questions
- A device's memory occupies the addresses 0x8000 to 0xBFFF, inclusive, with one byte at each address. How much memory is that?
- What is the largest 3-digit hexadecimal number minus the largest 3-digit octal number, in decimal?
- What is 11011011 XOR 10101110?
- A program must clear the lowest 4 bits of a byte to 0 while keeping the upper 4 bits unchanged. With which mask, written in hexadecimal…
- Which address can be assigned to a host in the subnet 10.0.0.4/30?
- Relation R(A, B, C) has the composite key AB and the dependency B → C. What is the highest normal form R satisfies?