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. tail -r logfile

  2. tail -n 5 logfile

  3. tail -f logfile

  4. tail -x logfile

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

The tail -f command follows the file growth in real-time, making it ideal for monitoring active log files. The other options, like -n 5 (displays only the last 5 lines once) or -r (reverses output), do not support continuous, real-time updates.

Multiple choice technology programming languages
  1. /META-INF/classes

  2. /classes

  3. /WEB-INF/classes

  4. /root/classes

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

In a WAR file, compiled Java classes must be placed in the WEB-INF/classes directory, maintaining their package structure. Options A, B, and D do not follow the WAR specification. The WEB-INF directory contains private resources that cannot be directly accessed by clients, making it the correct location for class files.

Multiple choice technology programming languages
  1. True

  2. False

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

The CLOSE WITH LOCK statement in COBOL closes the file and places a lock on it, preventing the same program from opening it again. This is a specific COBOL file handling feature for controlling file access within a program. The statement does prevent further access by the same program.

Multiple choice technology mainframe
  1. esds

  2. ksds

  3. rrds

  4. asds

Reveal answer Fill a bubble to check yourself
A,B,C Correct answer
Explanation

The three primary types of Virtual Storage Access Method (VSAM) files are Key-Sequenced Data Sets (KSDS), Entry-Sequenced Data Sets (ESDS), and Relative Record Data Sets (RRDS). The option 'asds' is not a recognized VSAM dataset type and is a fabricated distractor in this context.

Multiple choice technology
  1. Backup file

  2. Audio file

  3. Animation/movie file

  4. MS Encarta document

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

The .BAK extension is universally used for backup files across operating systems. When programs auto-save or create backups, they often use this extension. It indicates that the file is a backup copy of another file, typically with the same name but different extension.

Multiple choice technology
  1. WordPerfect Document file

  2. MS Office document

  3. Animation/movie file

  4. image file

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

The .MPG (or .MPEG) extension refers to video files - specifically MPEG (Moving Picture Experts Group) compressed video format. These are animation/movie files that use MPEG compression for efficient storage and transmission of video content.

Multiple choice technology
  1. Image file

  2. System file

  3. Hypertext related file

  4. Image Color Matching Profile file

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

The .INI extension stands for 'initialization' and is used for configuration files (system files) that store settings for applications and the Windows operating system. These plain text files contain key-value pairs that configure program behavior. They were especially common in older Windows versions.

Multiple choice technology
  1. Animation/movie file

  2. Image file

  3. MS Encarta document

  4. Backup file

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

The .JPG (or .JPEG) extension refers to image files using the JPEG (Joint Photographic Experts Group) compression format. This is one of the most common formats for photographic images on the web and digital devices due to its efficient compression.

Multiple choice technology
  1. Compressed Archive file

  2. System file

  3. Backup file

  4. Audio file

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

The .BAT extension refers to batch files - system files that contain a sequence of commands for execution by the command-line interpreter in DOS and Windows. These are script files that automate tasks. They are called 'batch' files because they execute commands in a batch (sequence).

Multiple choice technology
  1. Image file

  2. Audio file

  3. Animation/movie file

  4. MS Office document

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

.MOV is a file extension used by Apple's QuickTime framework for multimedia files. It stores video, audio, and text in separate tracks, allowing for flexible editing and playback.

Multiple choice technology
  1. A Jumper Programmed Graphic

  2. A type of hard disk

  3. A unit of measure for memory

  4. A format for an image file

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

JPG (or JPEG) is a widely used compressed image format that uses lossy compression to reduce file size while maintaining reasonable image quality. It's named after the Joint Photographic Experts Group who developed the standard and is commonly used for photographs and complex images.

Multiple choice technology
  1. Compressed Archive file

  2. Screensaver

  3. Programming/scripting related file

  4. Hypertext related file

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

The .CPP file extension is used for C++ source code files, which are programming files. C++ is a widely-used programming language, and .cpp files contain the actual code written by programmers. The other options are incorrect: .cpp is not a compressed archive, screensaver, or hypertext file.