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

  2. getc

  3. fseek

  4. all of the above

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

It is used to set the file-position indicator for the stream pointed to by the stream. The new position is measured in bytes from the begning of the file and obtained by adding offset to the position specified by whence, whose values are defined in <stdio.h>. fseek() function is used to randomly access a file. For example: int fseek(FILE *stream, long offset, int whence);

Multiple choice
  1. Regular file, directories, device file

  2. Regular disk file, special file, device file

  3. Tape file, directories, special file

  4. All of the above

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

Regular file, Directory file and Device files are three types of files of Unix. The regular file is also called as ordinary file. Directory file is used for directories files and diectory. The device file is used for peripheral devices and other devices operations.

Multiple choice
  1. File modification time

  2. File size

  3. Directory name to which file belongs

  4. File permissions

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

 We cannot find the file or directory name from inode. We can see the file type not file or directory name in inode attributes, so it is not a part of inode.

Multiple choice
  1. stdio.h

  2. assert.h

  3. alloc.h

  4. malloc.h

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

stdio.h is used for the standard input/output. assert.h contains the assert(). alloc.h contains the malloc(), calloc(), realloc() etc. malloc.h is not a header file.

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. CGI - Bin

  2. Recycle Bin

  3. Bin

  4. All of these

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

CGI - BINThe map-definition file is generally stored in CGI - BIN, while designing a web page which is by default a directory to store map definition file whereas, Recycle Bin and Bin are the directories having different functionality, so treated as wrong options.

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. F3, F1, F2, F4

  2. F3, F2, F1, F4

  3. F3, F2, F4, F1

  4. F3, F4, F1, F2

  5. None of these

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

1 ZB = 1021 bytes 1 PB = 1015 bytes 1 TB = 1012 bytes 1 KB = 103 bytes

Now, increasing memory sizes of files will be F3 < F2.  This matches with option sequence, hence, this option is correct. 

Multiple choice
  1. Winword.exe

  2. Word.exe

  3. Msword.exe

  4. Word2003.exe

  5. None of these

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

Winword.exe is the executable file that launches Microsoft Word. This naming convention has been consistent across Word versions - the 'win' prefix indicates Windows, and 'word' identifies the application. Other variations like Word.exe or Msword.exe are not the correct executable names.

Multiple choice
  1. Copy Con

  2. Type

  3. MD

  4. RD

  5. None of these

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

COPY CON (copy from console) creates a file in DOS by accepting user input from the keyboard until Ctrl+Z is pressed. Type displays file contents, MD creates directories, and RD removes directories.