Computer Knowledge

Computer File Systems

1,516 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. if(f1.open()) { .......... }

  2. if(f1.isopen) { ........... }

  3. if(f1.is_open()) { ............. }

  4. If(f1.is_open) { ................ }

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

The correct format to check whether a file stream f1 was successfully opened or not is as follows: if(f1.is_open()) { .................. } 

Multiple choice
  1. get(ch) function

  2. geline() function

  3. extraction operator

  4. open() function

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

The get(ch), getline() and extraction operators can be used to read a text file. But open() function can be used only to open the file in a particular mode.

Multiple choice
  1. accessed by only one user

  2. modified by user with correct password

  3. used to hide sensitive information

  4. none of these

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

A locked file can only be accessed by the single user or process that holds the lock. This exclusive access prevents other users from reading, modifying, or accessing the file until the lock is released. Locking is a fundamental mechanism for protecting data integrity when files are being used by multiple concurrent users or processes.

Multiple choice
  1. Log file

  2. Master file

  3. Specialised file

  4. Update file

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

In file organization systems, a master file contains permanent or semi-permanent data that changes slowly over time. Log files record activities, specialized files serve specific purposes, and update files contain temporary changes. The perpetual file is the master file as it maintains the core persistent data.

Multiple choice
  1. list

  2. thumbnails

  3. details

  4. icon

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

Details view in Windows Explorer displays multiple columns of metadata for each file, including file size, modification date, file type, and other attributes. List view only shows names, thumbnails shows previews, and icon view uses large icons without details.

Multiple choice
  1. an open folder

  2. the folder contains subfolders

  3. a text file

  4. a graphics file

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

In Windows Explorer's tree view, a plus (+) sign (or triangle) next to a folder indicates that it contains subfolders and can be expanded to show them. Once expanded, it changes to a minus (-) sign, and if empty, it has no sign.

Multiple choice
  1. A file is a collection of related pieces of information stored together for easy reference.

  2. Files can be generated from an application.

  3. Files are stored in RAM.

  4. Files should be organized in folders.

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

Files are stored on secondary storage devices like hard disks or SSDs for permanent retention, not in RAM. RAM is volatile memory that loses data when power is cut, making it unsuitable for permanent file storage.

Multiple choice
  1. maintain pages of documents that are being spooled to the printer

  2. hold a program's data or instructions in virtual memory when it can't fit in RAM

  3. prevent thrashing in a multitasking environment

  4. allow multiple print jobs to print their pages out simultaneously

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

A swap or page file extends virtual memory by holding program data and instructions that don't fit in physical RAM. When RAM is full, the OS moves less-used pages to disk, retrieving them when needed. This prevents crashes when memory demands exceed physical RAM. Option A refers to print spooling, C describes a consequence of insufficient memory, and D is about printer queues.

Multiple choice
  1. Files may share the same name or the same extension but not both.

  2. Every file in the same folder must have a unique name.

  3. File extension is another name for file type.

  4. The file extension comes before the dot (.) followed by the file name.

  5. None of these

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

In standard file naming conventions, the file name comes before the dot (.) and the extension comes after it (for example, 'document.txt' where 'document' is the name and '.txt' is the extension). Option D incorrectly reverses this by claiming the extension comes before the dot.