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 technology programming languages
  1. True

  2. False

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

In Server Side Includes (SSI), the 'file' attribute is used for files in the same directory using relative paths. The 'virtual' attribute is used for files in different directories or when using absolute paths. This distinction allows flexible file inclusion based on location.

Multiple choice technology platforms and products
  1. Rule-File-Text

  2. Rule-File-Binary

  3. Rule-File-Form

  4. Rule-File-CSS

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

In Pega, binary files like images (JPEG, JPG, PNG, GIF, etc.) are stored using Rule-File-Binary rule type. Rule-File-Text is for text-based files, Rule-File-Form is for HTML form templates, and Rule-File-CSS is for stylesheet files. Binary image data requires the binary rule type for proper storage and rendering.

Multiple choice technology storage
  1. Compression utility

  2. Compression and tape archive utility

  3. Tape scan utility

  4. utility to zip the files.

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

tar stands for Tape Archive. Originally designed to write sequential data to tape storage devices, modern implementations function as archiving utilities. While tar itself only packages files into a single archive without compression, it is universally coupled with compression algorithms like gzip or bzip2 to compress files.

Multiple choice technology
  1. JPEG

  2. GIF

  3. TMP

  4. BMP

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

JPEG, GIF, and BMP are all image file formats used for storing digital images. TMP, however, is a generic file extension for temporary files and is not specifically an image format. TMP files can contain any type of temporary data depending on the application that created them.

Multiple choice technology web technology
  1. List Contents of Current Working Directory.

  2. List Contents of Parent Directory.

  3. Display an Error.

  4. Display properties of file ..

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

The command 'ls ..' uses '..' which is a relative path reference to the parent directory. Therefore it lists the contents of the parent directory, not the current directory.

Multiple choice technology operating systems
  1. You only can list the contents of that directory.

  2. You can change to that directory.(Making that directory as present working directory)

  3. You can create new content inside that directory.

  4. Write permission for a directory wont effect anything.

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

In Unix-like filesystems, write permission on a directory allows a user to create, delete, and rename files or subdirectories within that directory. Read permission allows listing, and execute permission allows entering the directory.

Multiple choice technology operating systems
  1. Files have default permission as rw-rw-r--.and for directory it is as rwxrwxr-x

  2. Files have default permission as r--r--r--.and for directory it is as r-xr-xr-x

  3. Files have default permission as rw-rw-rw-.and for directory it is as rw-rw-rw-

  4. None of the above.

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

A umask of 0002 subtracts write permission for others. Since default directory permissions are 777 (rwxrwxrwx) and files are 666 (rw-rw-rw-), applying umask 0002 results in 775 (rwxrwxr-x) for directories and 664 (rw-rw-r--) for files.

Multiple choice technology operating systems
  1. Hard links share the same data blocks on the hard disk.Where as for soft link seperate file is created.

  2. Hard link: Associate two or more file names with the same inode.Where as soft Link is a small file pointing to another file.

  3. Both as same in case of implementation, only difference is in the size of new file created.

  4. Hard Link create a new seperate file and that is not related with old file.A soft link contains the path to the target file instead of a physical location on the hard disk.

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

Hard links associate multiple filenames with the same inode (and thus same data blocks), so they share the actual disk data. Soft links (symbolic links) are separate files that contain a path pointing to the target file rather than sharing data blocks. Option A is close but incomplete; option D incorrectly states hard links create separate files; option C is wrong about implementation differences.

Multiple choice technology programming languages
  1. It must be opened in INPUT mode

  2. It must be opened in OUTPUT mode

  3. It must be opened in I-O mode

  4. As in the case of SORT statement, the file must be closed before the use of this statement

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

The DELETE statement in COBOL requires the file to be opened in I-O mode. I-O mode allows both reading and writing operations, which is necessary for delete operations. INPUT mode only allows reading, OUTPUT mode only allows writing new records, neither supports deletion of existing records.

Multiple choice technology programming languages
  1. READ

  2. WRITE

  3. REWRITE

  4. START

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

START statement is used to position a file at a specific record for sequential processing. When ACCESS MODE is RANDOM, records are accessed directly by key, making sequential positioning operations like START invalid. READ, WRITE, and REWRITE are all valid operations for RANDOM access mode on relative files.

Multiple choice technology programming languages
  1. OPEN INPUT

  2. OPEN INPUT-OUTPUT

  3. OPEN EXTEND

  4. OPEN OUTPUT

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

In COBOL, to execute a WRITE statement on a sequential file, the file must be opened in either OUTPUT or EXTEND mode. Opening a file in INPUT mode makes it read-only, which makes WRITE operations invalid.

Multiple choice technology programming languages
  1. Can merge a maximum of three files.

  2. Does not require that the input file to be merged be sorted on the merge keys.

  3. Requires that all files mentioned in the statement must have records of same size

  4. Does not require that the position of the merge keys with in the records descriptions of each of the files must be same.

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

The MERGE verb in COBOL requires all input files and the output file to have records of the same size. This is because MERGE combines already-sorted files into a single sorted output, and record size compatibility is essential for proper merging. The input files must be sorted on merge keys before MERGE executes, and key positions must match across files.