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
-
Can merge a maximum of three files.
-
Does not require that the input file to be merged be sorted on the merge keys.
-
Requires that all files mentioned in the statement must have records of same size
-
Does not require that the position of the merge keys with in the records descriptions of each of the files must be same.
C
Correct answer
Explanation
The MERGE verb requires all input files to have records of the same size for proper merging. Input files must be sorted on merge keys, and merge keys must occupy the same position in each file's record description. The statement can merge more than three files.
-
It must be opened in INPUT mode
-
It must be opened in OUTPUT mode
-
It must be opened in I-O mode
-
As in the case of SORT statement, the file must be closed before the use of this statement
C
Correct answer
Explanation
A file referenced in a DELETE statement must be opened in I-O (input-output) mode because deletion requires both reading (to locate the record) and writing (to remove it). INPUT mode only allows reading, and OUTPUT mode only allows writing.
B
Correct answer
Explanation
COBOL has three types of file organization: Sequential (records stored in physical order), Indexed Sequential (records accessed sequentially or via key), and Relative (records accessed by relative record number).
B
Correct answer
Explanation
COBOL has three types of file access modes: Sequential (records read in order), Random (direct access by key), and Dynamic (combines sequential and random access). These correspond to the three file organization types.
-
If the specified file is already in the open mode, the program is suspended, and waits for exclusive availability of the file.
-
If the specified file is not in the open mode, the file is opened.
-
If the specified file is not in the open mode, the program is suspended, and waits for exclusive availability of the file.
-
If the specified file is in the open mode, the file is opened.
A,B
Correct answer
Explanation
When executing an open operation with a lock, the system requests exclusive access to the file. If the file is not currently open, it is opened successfully. If it is already open by another process, the program is suspended and waits for the file to become available.
-
OPEN INPUT
-
OPEN INPUT-OUTPUT
-
OPEN EXTEND
-
OPEN OUTPUT
-
Mismatch in LRECL between your COBOL pgm & the JCL
-
Mismatch in BLOCKSIZE between your COBOL pgm & the JCL
-
Mismatch in RECFM between your COBOL pgm & the JCL
-
All of the above
D
Correct answer
Explanation
File status 39 indicates a mismatch in file attributes between your COBOL program and the JCL. This can be LRECL (logical record length), BLOCKSIZE, or RECFM (record format) mismatch - any of these will cause status 39. The question is comprehensive - all three types of mismatches trigger status 39. Options A, B, and C each name one specific cause. Option D correctly captures all of them as possible causes.
A
Correct answer
Explanation
In UNIX, you can create new file systems using commands like mkfs, mkfs.ext4, or mkfs.xfs after partitioning a disk with fdisk or parted. This is a fundamental system administration task. The answer TRUE is correct.
-
ReportFile
-
SortIndexFile
-
Initialization File
-
File Viewer
A,B
Correct answer
Explanation
ReportFile is designed for generating output reports to text files. SortIndexFile can write sorted or indexed data to text files. Initialization Files are typically read-only configuration files. File Viewers are for reading and viewing files, not writing output.
-
Initialisation file
-
Auxillary File
-
File viewer
-
None Of these
-
CICS cannot handle file management by itself.
-
CICS helps in task of monitoring.
-
CICS doesn't need the statements like READ, WRITE, OPEN.
-
CICS doesn't act as data communication system.
-
CICS takes care of system functions along with application program functions.
A,D
Correct answer
Explanation
CICS cannot directly handle file management by itself - it relies on access methods like VSAM for file operations (A is true). CICS does not act as a data communication system - it manages communication but the actual data communication is handled by the system's telecommunications controller (D is true). CICS does help with monitoring (B is false). CICS does need READ/WRITE statements for file operations (C is false). CICS does handle both system and application program functions (E is false).
-
Distribution Definition
-
Stream Definition
-
Output Definition
-
Output Profile
-
Business Document Template (BDT)
E
Correct answer
Explanation
Output Management File components define how output is processed and delivered: Distribution Definition (where output goes), Stream Definition (output format), Output Definition (what to produce), and Output Profile (configuration settings). Business Document Template (BDT) is a design component, not a file management component.
B
Correct answer
Explanation
NAS (Network Attached Storage) provides file-level data access to applications. The statement claims that file blocks can be accessed by applications in NAS, which is false - NAS abstracts storage at the file level only, not at the block level. Applications work with entire files through NAS protocols like NFS or SMB.
-
Control file
-
Redo Logfile and datafile
-
Database
-
Current SCN Number
-
All of the above
E
Correct answer
Explanation
The control file is a critical binary file that tracks the database structure. It contains records about the database name, locations of datafiles and redo log files, backup sets, and the current System Change Number (SCN). Because it contains all of these details, 'All of the above' is correct.