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. text file

  2. data file

  3. binary file

  4. core

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

A text file stores data as a sequence of characters (human-readable). An integer stored as characters like '12345' rather than binary representation makes it a text file. Binary files store data in raw format.

Multiple choice
  1. shadow

  2. password

  3. profile

  4. all the the above

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

The shadow file stores secure account information, including encrypted passwords and password aging parameters like maximum and minimum days between changes. The password (passwd) file historically stores basic user information, while profile handles shell configuration.

Multiple choice
  1. cp

  2. cpy

  3. cmp

  4. none of these

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

The cp (copy) command in UNIX copies files and directories. The options listed as 'cpy' and 'cmp' don't exist as standard commands. Cp can copy single files, multiple files to a directory, or recursively copy entire directory structures with the -r flag.

Multiple choice
  1. CDdir

  2. CD

  3. Cd

  4. None of the above

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

The command to change directories in operating systems like DOS and Windows is cd or CD, and Unix is case-sensitive where cd works. CDdir is not a recognized command for changing directories, making it the invalid form.

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.