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

  2. bmp

  3. gif

  4. All of the above

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

HTML supports multiple image formats including jpg/jpeg, bmp, gif, png, svg, and webp. All the listed formats (jpg, bmp, gif) are valid and can be used with the img tag in HTML documents.

Multiple choice
  1. fstream f1; f1.open(TEXT.DAT, ios::app);

  2. ifstream f1; f1.open(TEXT.DAT, ios::app);

  3. ofstream f1; f1.open(TEXT.DAT, ios::trunc);

  4. fstream f1; f1.open(TEXT.DAT, ios::out);

  5. fstream f1; f1.open(TEXT.DAT, ios::in);

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

This code is correct for opening a file in append mode that sets the write pointer to the end of a file.

Multiple choice
  1. Declaring file streams

  2. Including the header files

  3. Opening a file

  4. Process the file

  5. Closing a file

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

This is the first step to use files in C++. To handle external files, header file like fstream.h has to be included in the beginning to perform input and output operations on files.