A direct or sequential access file has fixed size S-byte records. The first…
2022
A direct or sequential access file has fixed size S-byte records. The first byte of record N will start at which logical location?
- A.
(N + S) + 1
- B.
N * (S - 1) + 1
- C.
((N - 1) * S) + 1
- D.
(N - 1) * (S - 1) + 1
Attempted by 976 students.
Show answer & explanation
Correct answer: C
For sequential/direct access: Logical address of record N = ((N − 1) × S) + 1