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

  2. 255

  3. 254

  4. 257

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

Windows supports filenames up to 255 characters, excluding the drive letter, path, and extension. This is a limitation of the FAT/NTFS file systems and has been a consistent feature of Windows file management.

Multiple choice
  1. <

  2. >

  3. start

  4. origin

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

FASTA format sequence files always begin with a '>' (greater-than) character followed by a unique identifier and description. This header line introduces each sequence record and distinguishes it from the actual nucleotide or amino acid sequence data that follows.

Multiple choice
  1. They can be easily read and written.

  2. They need a special program to read and write.

  3. Processing of binary files is slow.

  4. Binary data files are damaged easily.

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

Binary data files need a special program to read and write. Because binary data files contain only 0 and 1. 

Multiple choice
  1. Name the file, open the file and close the file

  2. Open the existing file, read/write the file and close the file

  3. Open the file, read the file and write a file

  4. Create a file, open the file and close the file

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

The steps to process a file in C++  are

  1. Open the file
  2. Read or write the file
  3. Close the file
Multiple choice
  1. filepointer.seekg(0L,ios::start);

  2. filepointer.seekg(1L,ios::beg);

  3. filepointer.seekg(0L,ios::beg);

  4. filepointer.seekg(0L,io::beg);

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

The function seekg() is used to position the file pointer at a specific place. So, the statement filepointer.seekg(0L,ios::beg); positions the file pointer at the beginning of the file. 

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.