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
-
All files irrespective of whether they were changed or not
-
All files that were changed or added since the last full backup
-
All files that were not saved during the previous incremental backup
-
All files that were added since the last differential backup
B
Correct answer
Explanation
A differential backup saves all files that have changed since the last FULL backup (not since the last differential). Unlike incremental backups which only save changes since the last backup (full or incremental), differential backups accumulate all changes since the full backup, making restoration faster but requiring more storage space.
-
File and Data Sets preserve partitioning.
-
File and Data Sets are stored in internal format.
-
File and Data Sets contain header file and data files.
-
File and Data Sets are readable by external applications.
A,C
Correct answer
Explanation
File Sets and Data Sets both preserve partitioning metadata and consist of header files plus data files. They maintain how data is partitioned across nodes, which is crucial for parallel processing. Neither is stored in human-readable format (they use internal formats), and neither is directly readable by external applications without proper interfaces. Options A and C correctly describe these shared characteristics.
-
File sets are partitioned.
-
File sets are unpartitioned.
-
File sets are stored as a single file.
-
File sets are readable by external applications.
-
File sets are stored as header file and data files.
A,D,E
Correct answer
Explanation
File Sets in DataStage are partitioned storage structures that can be read by external applications because they store data in native file format with a separate header file describing the schema. This makes them different from Data Sets (which are proprietary). Option B is wrong because File Sets are explicitly partitioned. Option C is wrong because they consist of multiple files, not a single file.
B
Correct answer
Explanation
When File Update Mode is set to CREATE in DataStage, the job will abort if the file already exists. CREATE mode expects the file to not exist; to overwrite an existing file, you would need to use OVERWRITE mode instead.
A
Correct answer
Explanation
Informatica Lookup transformation supports flat files as lookup sources. You can configure a flat file as a lookup cache source or use a connected lookup with a flat file source definition.
-
Function Specification
-
Test Script
-
User requirements
-
Issue log
B
Correct answer
Explanation
Mercury system is Kraft's document management platform. Test Scripts are uploaded to Mercury for QA tracking and version control. Functional Specifications and User Requirements typically go through different approval workflows (Specification documents), while Issue Logs are tracked in separate issue management systems, not primarily uploaded as documents to Mercury.
-
Sequentially with descending order of the key
-
Sequentially with ascending order of the key
-
Randomly with descending order of the key
-
Randomly with ascending order of the key
B
Correct answer
Explanation
To perform an initial load on a VSAM KSDS, records must be loaded sequentially in ascending order based on the prime key. Attempting to load randomly or out of order during initialization causes errors.
-
EXPORT stores data in a compressed format. REPRO stores data uncompressed.
-
EXPORT and IMPORT are terms that are part of the REPRO command so there is actually no difference
-
EXPORT files contain the data and index portion of the data set. REPRO files contain only the data portion
-
EXPORT files contain all of the data set components, including attributes. REPRO files contain only the data
C
Correct answer
Explanation
EXPORT creates a backup file containing both data and index components, preserving the complete VSAM dataset structure. REPRO only copies the data portion. This distinction matters for recovery and migration - EXPORT maintains the full dataset including indexes, while REPO is a simpler data copy operation. Option A incorrectly describes compression differences, Option B falsely claims they're the same, and Option D incorrectly attributes component differences.
-
RECORD NOT FOUND
-
AT END
-
DUPLICATE RECORD
-
END OF FILE
B
Correct answer
Explanation
The AT END clause in COBOL is specifically designed to handle end-of-file conditions and can be used instead of explicitly checking FILE STATUS = 10. When a sequential file reaches EOF, the AT END clause executes, making it a cleaner alternative to FILE STATUS checking. RECORD NOT FOUND, DUPLICATE RECORD, and END OF FILE are not COBOL clauses that serve this purpose.
-
WORKING-STORAGE
-
FILE SECTION
-
CONTROL SECTION
-
LINKAGE SECTION
B
Correct answer
Explanation
In COBOL, Sort Description (SD) entries, which define the structure of sort work files, must be declared in the FILE SECTION of the DATA DIVISION. Other sections like WORKING-STORAGE, LINKAGE, or non-existent sections like CONTROL do not hold file or sort descriptions.
-
RECORD NOT FOUND
-
AT END
-
DUPLICATE RECORD
-
END OF FILE
B
Correct answer
Explanation
In COBOL, FILE STATUS = 10 indicates end-of-file condition. The AT END clause is specifically designed to handle this situation, allowing the program to execute a block of code when all records have been processed, making it a cleaner alternative to explicitly checking FILE STATUS.
-
WORKING-STORAGE
-
FILE SECTION
-
CONTROL SECTION
-
LINKAGE SECTION
B
Correct answer
Explanation
In COBOL programming, the short description of a file is typically given in the FILE SECTION.
Option A) WORKING-STORAGE - This section is used to define variables and data items that are used within the program for temporary storage or calculations.
Option B) FILE SECTION - This section is used to define the files that the program will read from or write to. It includes the short description of the file, along with details such as the file organization, access mode, and record structure.
Option C) CONTROL SECTION - This section is used to define the logic and control structures of the program, such as the PROCEDURE DIVISION and the various paragraphs, sections, and statements within it.
Option D) LINKAGE SECTION - This section is used to define data items that are passed between programs in a COBOL program.
The correct answer is B) FILE SECTION. This is where the short description of a file is typically given in COBOL programming.
-
Yes
-
No
-
after supervisors permission
-
Cant say
B
Correct answer
Explanation
When a file is opened as Read Only, you cannot save changes to the original file - the read-only attribute prevents modifications. To save, you would need to either close and reopen with write permissions or save to a different location/filename.
-
My Documents
-
My Computer
-
Start: Search
-
Start: Run
C
Correct answer
Explanation
In Windows XP and earlier versions, clicking Start and then selecting Search opens the Search Companion where you can search for files and folders. My Documents and My Computer are just folders/locations, not search interfaces. Start > Run opens the Run dialog for executing commands, not for searching files.
-
<!--include file="time.inc"-->
-
<?php include_file("time.inc"); ?>
-
<?php require("time.inc"); ?>
-
<% include file="time.inc" %>
C
Correct answer
Explanation
In PHP, require() is used to include a file, and the file will cease processing if it cannot be found - this is the correct syntax shown in option C. Option A shows HTML comment syntax, option B uses a non-existent function include_file(), and option D shows ASP-style syntax which is not standard PHP.