Computer AwarenessHardSSC CGL · RRB NTPC · IBPS PO · SBI Clerk

An 8-bit checksum is the sum of all data bytes modulo 256. Three data bytes are 0x12, 0x34 and 0x56 (hexadecimal). What is the checksum?

  1. A. 0x9A
  2. B. 0x9C
  3. C. 0x8C
  4. D. 0xA0

Correct answer: B. 0x9C

0x12 + 0x34 + 0x56 = 18 + 52 + 86 = 156 in decimal, which is 0x9C. As 156 is below 256, no wrap-around is needed.

हिंदी में

8 बिट चेकसम सभी डेटा बाइटों का योग मॉड्यूलो 256 है। तीन डेटा बाइट 0x12, 0x34 और 0x56 (हेक्साडेसिमल) हैं। चेकसम क्या है?

  1. A. 0x9A
  2. B. 0x9C
  3. C. 0x8C
  4. D. 0xA0

उत्तर: B. 0x12 + 0x34 + 0x56 = 18 + 52 + 86 = दशमलव 156, जो 0x9C है। 156, 256 से कम है, इसलिए मॉड्यूलो घटाने की आवश्यकता नहीं।

More Computer Awareness questions

Exams that ask this topic