Locate records across page boundaries

An archive stores exported database records in a file. A byte offset is a byte's position measured from the beginning of the file, starting at zero.


Each file page contains exactly 4096 bytes of data, with no headers or padding. Pages are numbered from zero, and positions within each page run from 0 to 4095. Each record occupies 96 consecutive bytes and may cross a page boundary.


For each record below, enter its starting page number, its starting offset within that page in bytes, and the number of distinct pages containing any of its bytes. Give exact integers.

RecordFile start offset (bytes)Starting pageOffset within page (bytes)Pages containing record
A8192
B12260
C16320

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Storage & Retrieval of Data Questions: