Computer AwarenessVery hardSSC CGL Tier 2 · IBPS PO Mains · IBPS/SBI
What is the 8-bit two's complement representation of the decimal number -45 in hexadecimal?
- A. D2
- B. 2D
- C. D3
- D. B3
Correct answer: C. D3
45 is 00101101; inverting the bits gives 11010010 and adding 1 gives 11010011 = D3. D2 is the one's complement, which forgets the +1.
हिंदी में
दशमलव संख्या -45 का 8-बिट टू'ज़ कॉम्प्लिमेंट निरूपण षोडशआधारी में क्या है?
- A. D2
- B. 2D
- C. D3
- D. B3
उत्तर: C. 45 = 00101101; बिट्स उलटने पर 11010010 मिलता है और 1 जोड़ने पर 11010011 = D3। D2 वन'ज़ कॉम्प्लिमेंट है, जिसमें +1 भूल गया है।
More Computer Awareness questions
- The binary number 10111101.101 is converted to octal. What is the result?
- Which of the following IPv4 addresses lies in a private address range defined by RFC 1918?
- A host has the IPv4 address 192.168.10.100 with subnet mask 255.255.255.192. What is the broadcast address of its subnet?
- A user types the correct web address of his bank in the browser, yet lands on a look-alike fake site because the DNS records on the router…
- A relation has four candidate keys. After one of them is chosen as the primary key, how are the remaining candidate keys described?
- An operating system makes every process request all the resources it will ever need before it begins executing. Which of the four…