Bird
0
0

Which of the following is the correct way to calculate a simple checksum?

easy📝 Factual Q3 of 15
Computer Networks - Physical and Data Link Layer
Which of the following is the correct way to calculate a simple checksum?
AInvert all bits in the data
BAdd all data bytes and take the modulo of the sum
CCount the number of zeros in the data
DMultiply all data bytes together
Step-by-Step Solution
Solution:
  1. Step 1: Understand checksum calculation

    A simple checksum adds all data bytes and then applies modulo to keep the result within a fixed size.
  2. Step 2: Identify correct method

    Only adding bytes and taking modulo matches checksum calculation; other options do unrelated operations.
  3. Final Answer:

    Add all data bytes and take the modulo of the sum -> Option B
  4. Quick Check:

    Checksum = sum bytes mod value [OK]
Quick Trick: Checksum sums bytes and applies modulo [OK]
Common Mistakes:
MISTAKES
  • Multiplying bytes instead of adding
  • Counting zeros instead of summing
  • Inverting bits instead of summing

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Computer Networks Quizzes