CB84000D001C001C is the content of a UDP header in hexadecimal format. The…

2025

CB84000D001C001C is the content of a UDP header in hexadecimal format. The source port number is

  1. A.

    52100

  2. B.

    13

  3. C.

    28

  4. D.

    52000

Attempted by 176 students.

Show answer & explanation

Correct answer: A

Answer: 52100

Explanation: The UDP header consists of four 2-byte fields in order: source port, destination port, length, checksum. The provided header bytes (hex) are: CB84 000D 001C 001C.

  • Step 1: Extract the first two bytes for the source port: "CB84".

  • Step 2: Convert hex CB84 to decimal by splitting into bytes: CB hex = 203, 84 hex = 132.

  • Step 3: Compute 203 * 256 + 132 = 52100. Therefore the source port is 52100.

  • Note: The remaining fields are destination port = 000D (13) and length = 001C (28).

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Tpsc Assistant Technical Officer