Computer Knowledge

Computer File Systems

1,249 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. Images

  2. Video

  3. Sound

  4. Word Document

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

WAV (Waveform Audio File Format) is a Microsoft/IBM standard audio format for storing sound bitstreams on PCs. It contains uncompressed raw audio data and is specifically designed for sound files, not images, video, or documents.

Multiple choice technology
  1. True

  2. False

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

Sequential file stages in DataStage are typically used as source or target stages for reading from or writing to flat files. They are not designed to be intermediate stages for data passing between other stages within a job. Use Dataset stages or in-memory buffers for intermediate storage.

Multiple choice technology databases
  1. True

  2. False

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

The extended stored procedure xp_fileexist checks whether a specified file exists on the server's file system and returns output parameters indicating file existence. It returns 1 in the 'File Exists' parameter if the file is found. Note: Extended stored procedures are deprecated in modern SQL Server versions in favor of FILESTREAM and other methods.

Multiple choice technology mainframe
  1. Logical- FILE-1, Physical- INFILE

  2. Logical- INFILE, Physical- FILE-1

  3. Logical- None, Physical-ASSIGN

  4. None of them

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

In the SELECT statement, the filename immediately following SELECT (FILE-1) is the logical filename used inside the COBOL program, and the name assigned (INFILE) corresponds to the external physical file or JCL DD name.

Multiple choice technology mainframe
  1. SEQUENTIAL

  2. RANDOM

  3. DYNAMIC

  4. ACCESS MODE has nothing to do with it

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

In COBOL, DYNAMIC access mode allows a program to switch between sequential and random access of records on the same file. SEQUENTIAL only permits serial reading, and RANDOM only permits direct reading by key, making DYNAMIC the correct choice.

Multiple choice technology
  1. Output

  2. Fail

  3. Drop

  4. Continue

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

In the Sequential File Stage, the 'Output' Reject Mode writes rejected records to a reject link for later handling. 'Fail' stops the job entirely on rejection, 'Drop' silently discards rejected records, and 'Continue' processes remaining records but doesn't write rejects anywhere.

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. 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
  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.