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
  1. I Conv

  2. O Conv

  3. Both

  4. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. True

  2. False

  3. Depends on project

  4. Depends on file

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. Only to extract data

  2. Only to load data

  3. Only either to extract or to load

  4. Only to Transform data

  5. To extract, load or transform

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. File path

  2. File format (Fixed width or Delimited)

  3. Column definitions

  4. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. Number of Processes or Nodes.

  2. Actual Disk Storage Location.

  3. Fast name

  4. All the Above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. Read From Multiple Nodes

  2. Number of Readers Per Node

  3. Report Progress

  4. Pattern

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. Hashed files are the best way to store data for lookups.

  2. Hashed files are especially useful if they store information with data dictionaries (customer details, countries, exchange rates).

  3. Very fast when looking up the key-value pairs.

  4. All the Above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. mp

  2. cfg

  3. xfr

  4. dml

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. defined as

  2. refers

  3. owned by

  4. includes

  5. extended by

  6. known by

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. Converts string to user defined format.

  2. Converts string to internal storage format.

  3. Converts internal storage format to String.

  4. None of the above

Reveal answer Fill a bubble to check yourself
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).

Multiple choice technology programming languages
  1. Sequential & Indexed

  2. Indexed & Relative

  3. Relative

  4. NONE

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. RELATIVE files

  2. SEQUENTIAL files

  3. INDEXED files

  4. NONE OF THESE

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. INPUT

  2. OUTPUT

  3. I-O

  4. EXTEND

  5. All of the above

  6. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. OUTPUT & I/O

  2. EXTEND

  3. Both a & b

  4. NONE OF THESE

Reveal answer Fill a bubble to check yourself
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.