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
-
.XFR
-
.TXT
-
.DML
-
None of the above
C
Correct answer
Explanation
Ab Initio uses .DML (Data Manipulation Language) files to store record format definitions and metadata externally to the graph. This allows reuse of metadata definitions across multiple graphs and components.
-
ClassName.cpp
-
Classname.cpp
-
Class.name.cpp
-
Class_Name.cpp
A
Correct answer
Explanation
ClassName.cpp follows the naming guideline - the filename matches the class name exactly with .cpp extension. Classname.cpp (wrong case), Class.name.cpp (invalid character), and Class_Name.cpp (underscore not allowed) violate the convention.
-
The COMPRESSION HIGH option can be enabled only for CLOBs.
-
The COMPRESSION HIGH option can be enabled for all internal LOBs.
-
The DECRYPT option can be used to remove encryption only if the LOB column is empty.
-
The DECRYPT option can be used to remove encryption from LOB columns that are empty or contain data.
B,D
Correct answer
Explanation
COMPRESSION HIGH is available for all internal LOB types (BLOB, CLOB, NCLOB), not just CLOBs, making option B correct. The DECRYPT option can remove encryption from LOB columns regardless of whether they contain data or are empty, making option D correct. Option A is incorrect because compression isn't limited to CLOBs, and option C is incorrect because the DECRYPT option works on non-empty columns too.
-
more <filename>
-
pico <filename>
-
cat <filename>
-
touch <filename>
D
Correct answer
Explanation
The touch command creates an empty file without opening it in any editor. It simply updates the file's timestamp if it exists, or creates a new empty file if it doesn't. This is the standard Unix/Linux way to quickly create files. The other commands (more, pico, cat) either open files for viewing or editing, or require piping content.
-
swf
-
swc
-
swz
-
None of the above
C
Correct answer
Explanation
Adobe's signed Runtime Shared Libraries (RSLs) use the .swz extension to distinguish them from unsigned .swf files and .swc library archives. The .swz format indicates Adobe-signed, cached library content.
-
File type
-
Links
-
Ownership
-
File size
-
Last modification time
-
File name
A,B,C,D,E,F
Correct answer
-
CPYF copies the records of one logical file to another but changes the file attribute to PF.
-
CRTDUPOBJ copies the records of one logical file to another but retains the file attribute as LF.
-
All of the above
-
None of the above.
B
Correct answer
Explanation
CRTDUPOBJ creates an exact duplicate of an object, preserving all original attributes including the LF (Logical File) designation. CPYF, however, copies the data but creates a new Physical File (PF) rather than maintaining the logical file structure. Option B correctly identifies that CRTDUPOBJ retains the file attribute as LF when duplicating a logical file.
-
/META-INF/classes
-
/classes
-
/WEB-INF/classes
-
/root/classes
C
Correct answer
Explanation
To solve this question, the user needs to be familiar with the structure of a war file, which is a compressed file format used to package web applications.
The compiled class files are stored in the /WEB-INF/classes directory inside the war file. Therefore, the correct answer is:
The Answer is: C. /WEB-INF/classes.
Option A (/META-INF/classes) is incorrect because the META-INF directory in the war file contains metadata files, not compiled class files.
Option B (/classes) is also incorrect because there is no such directory in a typical war file.
Option D (/root/classes) is incorrect because there is no root directory in a war file.
-
A, N, P, B, U
-
A, N, H, B, U
-
A, N, D, H, B
-
C, N, P, B, U
A
Correct answer
Explanation
In Easytrieve file definitions, fields can have the following format types: A (Alphabetic/Alphanumeric), N (Numeric), P (Packed decimal), B (Binary), and U (Unsigned/Unformatted). Option D is incorrect because C is not a valid format. Option B is incorrect because H is not standard. Option C incorrectly includes D and H instead of P and U.
D
Correct answer
Explanation
All four file definition formats shown are valid Easytrieve syntax. A uses * for next position. B uses +10 as relative offset. C uses absolute position (10) and length (10). D includes file name (IN-FILE) with relative offset. Each demonstrates different ways to specify field positioning in Easytrieve file definitions.
-
Columnar file
-
XML file
-
Live file
-
pdf
A,B,C
Correct answer
Explanation
Dialogue supports multiple input file formats including columnar files (structured data in columns), XML files (structured markup data), and live files (real-time data sources). PDF is not a supported input format as it's primarily an output format.
A
Correct answer
Explanation
In COBOL, you can specify the same file name in both the USING (input) and GIVING (output) phrases of a SORT statement. When executed, the sorting process uses the file as input and overwrites it with the sorted output, effectively sorting the file in place.
-
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).