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. iostream

  2. fstream

  3. ofstream

  4. ifstream

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

fstream is the correct C++ class for file operations that require both input and output capabilities. The ios::in | ios::out flags indicate we need to both read from and write to the file, which fstream supports. iostream only handles console I/O, while ifstream and ofstream are specialized for input-only or output-only operations respectively.

Multiple choice
  1. Object program

  2. Object file header

  3. Text segment

  4. Relocation information

  5. Proc-Type

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

This object file format is used to describe the size and position of the other pieces of file. The overall information about the file, such as size of the code, name of the source file it was translated from and creation data is stored in object header file.

Multiple choice
  1. iomanip.h

  2. stdio.h

  3. fstream.h

  4. iostream.h

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

The fstream.h header file (or in standard C++) provides classes and functions for file input/output operations. The read() function reads data from a file, and open() opens a file stream. iostream.h handles console I/O, stdio.h is for C-style I/O, and iomanip.h is for I/O formatting.

Multiple choice
  1. file.exe

  2. file.doc

  3. file.xlf

  4. file.xls

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

.xls is the standard file extension for Microsoft Excel spreadsheets. The other extensions represent different file types: .exe for executable programs, .doc for Word documents, and .xlf for localization interchange files.