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
-
Recording mode - F
-
Recording mode - V
-
Recording mode - U
-
Recording mode - S
-
No default mode for QSAM
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.
-
FILE SECTION
-
REPORT-SECTION
-
SCREEN-SECTION
-
STORAGE-SECTION
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.
B
Correct answer
Explanation
In COBOL, the MERGE verb combines two or more sorted sequential files into a single sorted output file based on specified keys. MER is not a valid verb, COMBINE doesn't exist in COBOL, and JOIN is used for database operations not file merging.
-
Deletes all from first line to last line
-
Delete all characters .ZF and .ZL
-
Error occurs
-
Does nothing
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.
-
Executes the script
-
Changes the time stamp of existing file
-
Creates a file of 0 byte.
-
b and c
-
All of the above
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.
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.
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.
-
zipplus
-
winrar
-
winzip
-
gzip
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.
-
file name : process name : timestamp : line : trace group : logged message
-
timestamp : file name : process name : line : trace group : logged message
-
timestamp : process name : file name : line : logged message : trace group
-
timestamp : process name : file name : line : trace group : logged message
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.
-
file name : process name : timestamp : line : trace group : logged message
-
timestamp : file name : process name : line : trace group : logged message
-
timestamp : process name : file name : line : logged message : trace group
-
timestamp : process name : file name : line : trace group : logged message
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.
-
File status indicator
-
It is stored in both disk and memory and tracts file status
-
There is one inode for each file on the system
-
All the above
-
None of the above
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.
-
Only Work Objects
-
Work Objects or Covers
-
Work Objects, Covers, or other Folders
-
None of the above
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.
-
File
-
Object
-
URL
-
Screenshot
-
Scanned Document
B
Correct answer
Explanation
PRPC has specific standard attachment types including File, URL, Screenshot, and Scanned Document. 'Object' is not one of the predefined attachment type categories in the PRPC platform. The standard types are designed to cover common attachment scenarios.
-
uuencode coomand
-
attach command
-
compress command
-
Its not possilble to send attachment from unix
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.
-
getFlashVersion()
-
getVersion()
-
getLatestVersion()
-
None of the above
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.