A direct-access file system uses blocks of size 4 KB. Each logical record is…

2025

A direct-access file system uses blocks of size 4 KB. Each logical record is 512 bytes. What is the block number for the logical record numbered 235?

  1. A.

    29

  2. B.

    30

  3. C.

    31

  4. D.

    32

Attempted by 18 students.

Show answer & explanation

Correct answer: B

First, calculate the number of records per block by dividing the block size (4096 bytes) by the record size (512 bytes), which equals 8 records. Next, determine the block number for record 235 by dividing 235 by 8 and rounding up to the nearest whole number, resulting in block 30.

Explore the full course: Mppsc Assistant Professor