Multiple choice technology programming languages

In which of the files can records be accessed either sequentially or randomly

  1. Sequential & Indexed

  2. Indexed & Relative

  3. Relative

  4. NONE

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Indexed files allow both sequential access (reading records in order) and random access (reading records by key) because they maintain an index structure. Relative files also support both access modes - records can be accessed sequentially or by their relative record number. Sequential files only support sequential access, not random. Therefore, only Indexed and Relative files support both modes.