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
-
I Conv
-
O Conv
-
Both
-
None of the above
A
Correct answer
Explanation
IConv (Input Conversion) converts external string representations to internal storage formats, like converting a date string to internal date format. OConv (Output Conversion) does the reverse - converts from internal to external display format. Both are DataStage BASIC functions for data conversion.
-
True
-
False
-
Depends on project
-
Depends on file
B
Correct answer
Explanation
DataStage supports exporting metadata including field definitions for sequential files through table definitions. You can export, import, and reuse metadata across jobs using the Repository or by exporting to .ds files. The statement claiming we can't export metadata is false - metadata management is a core DataStage capability.
-
Only to extract data
-
Only to load data
-
Only either to extract or to load
-
Only to Transform data
-
To extract, load or transform
C
Correct answer
Explanation
The Sequential File stage is primarily used for reading (extract) and writing (load) sequential files. It does not perform transformations - that's the role of stages like Transformer. The stage is bidirectional but focused on data transfer, not manipulation.
-
File path
-
File format (Fixed width or Delimited)
-
Column definitions
-
None of the above
D
Correct answer
Explanation
All listed options (file path, file format, column definitions) ARE components of the Sequential File stage configuration. The question asks what is NOT a component, making 'None of the above' the correct answer because all options A, B, and C are valid components.
-
Number of Processes or Nodes.
-
Actual Disk Storage Location.
-
Fast name
-
All the Above
D
Correct answer
Explanation
A DataStage configuration file for parallel jobs specifies all execution environment parameters: number of processes/nodes for parallel processing, disk storage locations for data, and the 'fastname' (node identifier). All three components are essential for proper parallel job configuration.
-
Read From Multiple Nodes
-
Number of Readers Per Node
-
Report Progress
-
Pattern
A
Correct answer
Explanation
Sequential files are typically read by a single node. To enable parallel reading where multiple nodes each read parts of the file, you must select the "Read From Multiple Nodes" option. This allows the file to be partitioned across nodes for parallel processing. Number of Readers Per Node controls reader count per node, not multi-node access.
-
Hashed files are the best way to store data for lookups.
-
Hashed files are especially useful if they store information with data dictionaries (customer details, countries, exchange rates).
-
Very fast when looking up the key-value pairs.
-
All the Above
D
Correct answer
Explanation
Hashed files in DataStage provide optimized storage and retrieval for reference data. They are ideal for lookups due to their key-based structure, excel at storing relatively static reference data like country codes or exchange rates, and offer very fast lookup performance using hash-based access rather than full table scans.
C,D
Correct answer
Explanation
In Ab Initio, .xfr files contain Transform function code (business logic for data transformation), and .dml files contain Data Manipulation Language specifications (record formats and metadata). These are both package file extensions used in Ab Initio development. .mp files are metadata files and .cfg files are configuration files, but they're not typically classified as package extensions in the same context.
-
defined as
-
refers
-
owned by
-
includes
-
extended by
-
known by
B,F
Correct answer
Explanation
In SYNON, file-to-file relations include defined as, owned by, and extended by. known by is a file-to-field relation, and refers is not a valid relation name, making both correct answers.
-
Converts string to user defined format.
-
Converts string to internal storage format.
-
Converts internal storage format to String.
-
None of the above
B
Correct answer
Explanation
ICONV is a DataStage BASIC function that converts string representations to internal storage format. For example, ICONV('2024-01-15','D') converts a date string to internal date integer. Option B correctly describes this conversion to internal format. Options A and C reverse the direction (OCONV does internal-to-string).
-
Sequential & Indexed
-
Indexed & Relative
-
Relative
-
NONE
B
Correct answer
Explanation
Indexed and Relative file organizations both support sequential and random access methods. Indexed files allow access via sequential reads or through a key lookup, while Relative files support sequential processing or direct access by relative record number. Sequential files only support sequential access, making option B the correct choice.
-
RELATIVE files
-
SEQUENTIAL files
-
INDEXED files
-
NONE OF THESE
B
Correct answer
Explanation
The DELETE statement cannot remove records from SEQUENTIAL files in COBOL. Sequential files must be processed with rewrite operations to effectively delete records, whereas RELATIVE and INDEXED files support direct record deletion via DELETE. This limitation exists because sequential files don't have individual record addressing required for deletion.
B
Correct answer
Explanation
In TANDEM COBOL85, as with standard COBOL practice, files should be explicitly closed using the CLOSE statement before executing STOP RUN. This ensures proper file buffer flushing, record updates, and resource cleanup. Relying on implicit closure can lead to data loss or corruption.
-
INPUT
-
OUTPUT
-
I-O
-
EXTEND
-
All of the above
-
None of the above
C
Correct answer
Explanation
The REWRITE verb in COBOL requires the file to be opened in I-O (Input-Output) mode. This is because REWRITE reads an existing record and then writes it back in the same position - it needs both read and write access. INPUT mode only allows reading, OUTPUT mode only allows writing new records, and EXTEND mode only adds records at the end.
-
OUTPUT & I/O
-
EXTEND
-
Both a & b
-
NONE OF THESE
C
Correct answer
Explanation
To write new records into a file, the file must be opened in OUTPUT (to write new records), I-O (to insert/modify), or EXTEND (to append records). Therefore, both options a and b are valid. The distractor claiming none of these is wrong because these modes directly support write operations.