Explore BrainMass

Explore BrainMass

    Direct access files

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Suppose a direct access file consists of sectors with 1024 byte capacity. Suppose also that records are 32 bytes long. On which logical sector do the following logical records lie? What is the relative record number in the sector?

    Logical record 42
    Logical record 131
    Logical record 32
    Logical record 512

    © BrainMass Inc. brainmass.com October 9, 2019, 6:46 pm ad1c9bdddf

    Solution Preview

    First multiply the logical record size by the logical record number to get the byte position.

    Logical record 42 -> 42 * 32 = 1344

    Byte position 1344
    --------------------- = 1, remainder 320.
    1024 bytes/sector

    Logical sector is 1, the relative record number in the sector = 320/32, which is ...

    Solution Summary

    The expert examines direct assess files.