Computer Knowledge

Computer File Systems

1,249 Questions

Computer file systems dictate how data is stored, organized, and retrieved on storage devices. Important concepts include file allocation tables, access mechanisms, and various formats like sequential and video files. Candidates preparing for banking and government exams should practice these fundamentals thoroughly.

File access mechanismsVideo and password filesFile extensionsFile allocation tableSystem metadata

Computer File Systems Questions

Multiple choice
  1. F2, F3, F1, F5, F6, F2

  2. F2, F6, F5, F1, F4, F3

  3. F1, F2, F3, F4, F5, F6

  4. Ordering is immaterial as all files are accessed with the same frequency.

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

Since, the access is sequential greater the distance greater will be the access time. Since, all files are referenced with equal frequency overall access time can be reduced by arranging them as in option (1). 

Multiple choice
  1. identify the record in the list

  2. identify the name, width and type of the fields of each record

  3. identify the file in a record

  4. both (1) and (2)

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

To have a file holding a list, you need to: (1) identify which records belong in the list, and (2) identify the structure (name, width, type) of fields in each record. Option (3) about identifying a file in a record doesn't make semantic sense in this context. The correct answer combines (1) and (2) as both are necessary.

Multiple choice
  1. HMT extension

  2. HTML extension

  3. THM extension

  4. None of these

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

The MIME text file is saved with HTML extension to display (multiples internet mail extensions) the page on web browser, which is the standard extension for MIME text file. Whereas HMT extension and THM extension does not contain any functionality so, treated as wrong options.

Multiple choice
  1. file_put_string

  2. file_put_contents

  3. file_put_char

  4. none of these

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

file_put_contents() is the correct PHP function for writing a string to a file. It can write data to a file in a single call, optionally with flags like FILE_APPEND (to add to existing content) or LOCK_EX (to get an exclusive lock). This is simpler than the traditional fopen/fwrite/fclose sequence.