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 mainframe
  1. Recording mode - F

  2. Recording mode - V

  3. Recording mode - U

  4. Recording mode - S

  5. No default mode for QSAM

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

QSAM defaults to Fixed (F) recording mode, meaning records have a fixed length. The other options (V, U, S) refer to variable, undefined, or sequential modes that are not the default for QSAM, so they are incorrect.

Multiple choice technology mainframe
  1. FILE SECTION

  2. REPORT-SECTION

  3. SCREEN-SECTION

  4. STORAGE-SECTION

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

COBOL Data Division contains FILE SECTION for file descriptions, WORKING-STORAGE SECTION for working data, LINKAGE SECTION for parameter passing, REPORT SECTION for report writer, and SCREEN SECTION for screen handling. STORAGE-SECTION is not a valid section name - this appears to be a malformed reference to WORKING-STORAGE SECTION.

Multiple choice technology mainframe
  1. Deletes all from first line to last line

  2. Delete all characters .ZF and .ZL

  3. Error occurs

  4. Does nothing

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

The ISPF :DELETE ALL primary command with label range .ZF (first line) to .ZL (last line) deletes all lines in that range. .ZF and .ZL are built-in ISPF labels representing file boundaries. This effectively deletes the entire file contents, not the labels themselves.

Multiple choice technology operating systems
  1. Executes the script

  2. Changes the time stamp of existing file

  3. Creates a file of 0 byte.

  4. b and c

  5. All of the above

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

The 'touch' command in Unix/Linux performs two functions: 1) If the file doesn't exist, it creates an empty file (0 bytes). 2) If the file already exists, it updates the file's timestamp to the current time. Therefore, option D 'b and c' is correct because touch does both of these things depending on whether the file exists.

Multiple choice technology operating systems
  1. file

  2. type

  3. which

  4. grep

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

The 'file' command determines a file's type by examining its contents (magic numbers and header bytes), not just the extension. It outputs descriptions like 'ASCII text', 'ELF executable', 'JPEG image', etc. The 'type' command is a shell builtin for displaying command types, 'which' locates commands, and 'grep' searches for text patterns.

Multiple choice technology operating systems
  1. 666

  2. 755

  3. 766

  4. 777

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

Perl programs need execute permission to run directly. The 755 octal notation means: owner can read, write, execute (7); group can read and execute (5); others can read and execute (5). This is the standard permission for executable scripts, while 666 only allows read/write with no execute capability.

Multiple choice technology operating systems
  1. zipplus

  2. winrar

  3. winzip

  4. gzip

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

Gzip is the standard compression utility for Unix/Linux systems. Unlike Windows-centric tools like WinRAR or WinZip, gzip is natively integrated into Unix environments and is the go-to tool for compressing and decompressing files in the Unix ecosystem.

Multiple choice technology embedded technologies
  1. file name : process name : timestamp : line : trace group : logged message

  2. timestamp : file name : process name : line : trace group : logged message

  3. timestamp : process name : file name : line : logged message : trace group

  4. timestamp : process name : file name : line : trace group : logged message

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

The standard Trace & Error log format begins with timestamp for chronological ordering, followed by process name for multi-process systems, then the file name and line number for precise source location, the trace group for categorization, and finally the actual logged message. Options A and B are incorrect because they don't start with timestamp. Option D incorrectly places trace group before the message.

Multiple choice technology embedded technologies
  1. file name : process name : timestamp : line : trace group : logged message

  2. timestamp : file name : process name : line : trace group : logged message

  3. timestamp : process name : file name : line : logged message : trace group

  4. timestamp : process name : file name : line : trace group : logged message

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

The TPF Trace & Error log format structures entries chronologically starting with timestamp, followed by file name, process name, line number, trace group, and finally the logged message. This standardized format allows for systematic parsing and analysis of diagnostic information. Option B correctly presents this sequence: timestamp:file name:process name:line:trace group:logged message.

Multiple choice technology operating systems
  1. File status indicator

  2. It is stored in both disk and memory and tracts file status

  3. There is one inode for each file on the system

  4. All the above

  5. None of the above

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

An inode is a data structure that stores file metadata (permissions, size, timestamps, location). Every file has exactly one inode. Inodes exist both on disk (persistent storage) and in memory (when files are accessed). Therefore all descriptions A, B, and C are correct aspects of inodes.

Multiple choice technology
  1. Only Work Objects

  2. Work Objects or Covers

  3. Work Objects, Covers, or other Folders

  4. None of the above

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

Folders can contain any combination of Work Objects, other Folders, or Covers. This hierarchical structure allows nested organization of work items. Options A and B are too restrictive, while D incorrectly denies all containment possibilities.

Multiple choice technology operating systems
  1. uuencode coomand

  2. attach command

  3. compress command

  4. Its not possilble to send attachment from unix

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

The uuencode command converts binary files to ASCII format, allowing them to be sent as email attachments through the mailx utility. When piped to mailx, it properly formats the file as an attachment rather than inline text, which is the traditional Unix method for email attachments.

Multiple choice technology
  1. getFlashVersion()

  2. getVersion()

  3. getLatestVersion()

  4. None of the above

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

The getVersion() function in ActionScript returns a string containing Flash Player version and platform information. This includes details like the operating system (WIN, MAC, UNIX) and the Flash Player version number. There is no function named getFlashVersion() or getLatestVersion() in standard ActionScript.