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

  2. "w"

  3. "a"

  4. all the above

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

To solve this question, the user needs to know about file modes in C programming.

In C programming, the file modes are used to specify the type of access that is required to open the file. Each mode represents a different type of operation that can be performed on the file. The three most commonly used file modes are "r" for reading, "w" for writing, and "a" for appending.

Option D is correct because all of the given options denote file modes that can be used in a C program.

Option A ( "r" ) is used to open a file for reading purposes.

Option B ( "w" ) is used to open a file for writing purposes. If the file already exists, the contents of the file are overwritten. If the file does not exist, a new file is created.

Option C ( "a" ) is used to open a file for appending purposes. If the file already exists, new data is written to the end of the file. If the file does not exist, a new file is created.

Therefore, the answer is: D

Multiple choice technology
  1. Contains AV update

  2. Contains Antivirus Signature

  3. Restore File

  4. All of above

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

DAT (Data) files contain virus signatures - the patterns used to identify known malware. The antivirus scan engine compares files against these signatures to detect threats. Option A is vague and option C refers to a different file type entirely.

Multiple choice technology
  1. The ExtraDAT files address one or more specific Virus/threats that have appeared since the last DAT file was posted

  2. The ExtraDAT files address AV scan engine issues

  3. The ExtraDAT files address systems data encryptions

  4. All of them

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

ExtraDAT files are emergency updates released between regular DAT updates to address specific new threats. They provide rapid protection against emerging malware before the next full DAT update is available. They don't address engine issues or encryption.

Multiple choice technology programming languages
  1. bydeflut it preserves

  2. cp -in

  3. cp -p

  4. cp -t

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

The 'cp -p' command preserves file attributes including timestamps when copying files. The -p flag explicitly tells cp to maintain the modification time, access time, file modes, and other attributes. By default, cp updates timestamps to the current time, so -p is required to preserve the original file's timestamps.

Multiple choice technology programming languages
  1. type filename

  2. type - -info filename

  3. file filename

  4. none

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

The file command is a standard Unix utility used to determine the file type by inspecting its content and magic numbers. The type command, on the other hand, describes how a command name is interpreted by the shell.

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