A particular disk unit uses a bit string to record the occupancy or vacancy of…

2018

A particular disk unit uses a bit string to record the occupancy or vacancy of its tracks, with 0 denoting vacant and 1 for occupied. A 32-bit segment of this string has hexadecimal value D4FE2003. The percentage of occupied tracks for the corresponding part of the disk, to the nearest percentage is

Answer: D. 44First, convert the hexadecimal value D4FE2003 to its 32-bit binary representation. Each hex digit corresponds to 4 bits: D=1101, 4=0100, F=1111, E=1110,…

  1. A.

    12

  2. B.

    25

  3. C.

    38

  4. D.

    44

Attempted by 223 students.

Show answer & explanation

Correct answer: D

First, convert the hexadecimal value D4FE2003 to its 32-bit binary representation. Each hex digit corresponds to 4 bits: D=1101, 4=0100, F=1111, E=1110, 2=0010, 0=0000, 0=0000, 3=0011. This gives the binary string: 11010100111111100010000000000011. Next, count the number of set bits (1s), which represent occupied tracks. There are 14 ones in total. Finally, calculate the percentage of occupied tracks: (14 / 32) * 100 = 43.75%. Rounding to the nearest percentage gives 44%.

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

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…