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
-
Pipeline parallelism
-
File parallelism
-
Component parallelism
-
Data parallelism
D
Correct answer
Explanation
Multifiles enable data parallelism by allowing simultaneous processing of multiple data files. Different processors or threads handle separate files concurrently, improving throughput.
C
Correct answer
Explanation
The NUI feed file Exceed_cvm.txt is split into 14 smaller files for parallel processing. This splitting strategy improves performance by allowing multiple processes to handle portions of the data simultaneously, reducing overall processing time for large files.
-
ASCII files
-
comma separated list
-
excel spreadsheet
-
All the above
D
Correct answer
Explanation
In Ab Initio, ASCII files, comma-separated values (CSV), and Excel spreadsheets are all commonly used flat file formats for data input and output. The component supports multiple delimited and fixed-width file formats.
-
.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.