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
-
/home is still mounted
-
/var is 100% full
-
A user is editing a file residing in /home
-
/tmp is 100% full
D
Correct answer
Explanation
When expanding a filesystem using chfs, AIX requires space in /tmp for temporary files. If /tmp is 100% full, the chfs command will fail even if the target filesystem (/home) has space issues. This is a common AIX filesystem administration gotcha.
-
The /fstest filesystem is out of space
-
The volume group containing the file system is not imported.
-
The /fstest directory has been removed.
-
A user is logged into the /fstest filesystem.
C
Correct answer
Explanation
The mount point directory /fstest must exist before mounting. The error explicitly states a path component doesn't exist, which directly points to a missing directory. Out of space would return different errors (ENOSPC), and a logged-in user wouldn't block mounting.
-
filename.hbm.xml
-
filename.cfg.xml
-
filename.hmb.xml
-
filename.cfg.hbm.xml
A
Correct answer
Explanation
Hibernate mapping files use the .hbm.xml extension by convention. The configuration file uses .cfg.xml. Options C and D are typos or non-existent formats.
-
Branching
-
Merging
-
Annotate
-
History
A
Correct answer
Explanation
Branching preserves the complete history of files and folders because when you create a branch, TFS maintains the entire version history up to that branch point. You can view the full historical context in the new branch. Merging combines changes but doesn't create the historical record, Annotate shows per-line history, and History is a view command.
-
I only
-
I and ii only
-
I, ii and iii only
-
I and iii only
B
Correct answer
Explanation
Proper information handling requires: (i) sharing files only with authorized personnel using proper rights management (RMS ensures this), and (ii) declaring media before moving it in/out of office premises for audit purposes. Option iii is incorrect because confidential printed files must be disposed securely (shredding or secure bins), NOT in regular trash where they could be retrieved. The claimed answer B (I and ii only) correctly excludes the incorrect option iii.
-
File Name
-
File Type
-
Size
-
Virus Scanning
B,C,D
Correct answer
Explanation
File type validation ensures only allowed formats are uploaded. Size limits prevent storage exhaustion and DoS attacks. Virus scanning detects malware. File name validation is less critical since the real security concern is file content and type.
-
find -mtime -24
-
find -mday -1
-
find -mday +1
-
find -mtime -1
D
Correct answer
Explanation
The find -mtime -1 command finds files modified less than 1 day ago (within the last 24 hours). The -mtime option uses days, where negative values mean less than and positive values mean more than. Option A is incorrect because -mtime uses days not hours. Option B uses the non-existent -mday option. Option C with +1 would find files modified MORE than 1 day ago.
-
using the temp filed in the file's inode
-
using the id filed in the file's inode
-
using the type filed in the file's inode
-
using the type filed in the directory's inode
C
Correct answer
Explanation
The kernel uses the 'type' field in the file's inode to distinguish between ordinary files and device files. Each inode contains a type field that identifies whether the file is a regular file, directory, character device, block device, symbolic link, etc. Option A (temp field) and B (id field) don't exist for this purpose. Option D is wrong because the type is in the file's inode, not the directory's.
-
jpeg
-
png
-
tiff
-
None of these
C
Correct answer
Explanation
TIFF (Tagged Image File Format) is the standard format for document scanning in enterprise environments because it supports lossless compression, multi-page documents, and is widely compatible with archival systems. JPEG and PNG are more commonly used for photos and web graphics, not document archival.
A
Correct answer
Explanation
Linux and UNIX filesystems are case-sensitive, meaning 'File.txt', 'file.txt', and 'FILE.TXT' are treated as three distinct files. This is a fundamental characteristic of Unix-like operating systems, inherited from their design philosophy.
-
$InputFile
-
$Input_File
-
$Input$File
-
$Input File
A
Correct answer
Explanation
In Informatica PowerCenter and similar ETL tools, parameter names for file handling follow the convention of starting with $ followed by the parameter name without spaces or special characters (except underscore at the end for some metadata parameters). $InputFile is the correct convention. $Input_File uses an underscore in the middle which is not standard for file parameter naming. $Input$File has a dollar sign in the middle which is invalid. $Input File contains a space which is not allowed in parameter names.
-
Relational
-
File
-
Xml
-
Binary
-
All the above
A,B
Correct answer
Explanation
Error logs in Informatica can be written to different storage types. Relational error logs store error information in database tables for structured querying and analysis. File-based error logs write errors to flat files (text, CSV) for portability and external processing. XML (C) and Binary (D) are not standard error log types - error logs are typically written in readable formats for debugging.
-
Event raise
-
File watch
-
Pre-defined Event
-
User defined event
-
None of the above
C,D
Correct answer
Explanation
Events are categorized into pre-defined events (built into the system) and user-defined events (created by developers). 'Event raise' and 'File watch' are not event types but operations or mechanisms, not categories.
A
Correct answer
Explanation
The .msi (Microsoft Installer) extension is the standard file format for Windows Installer setup packages. These files contain installation information and are used by the Windows Installer service to install applications. .mst files are transform files used to modify installations, .zap is for Windows Installer patches, and .aas is not a standard Windows Installer extension.
B
Correct answer
Explanation
Unix files do NOT have an end-of-file mark stored in the file itself. EOF is detected by the operating system when a read operation returns no more data (0 bytes read). Unlike some other systems that used special characters (like CP/M's Ctrl-Z), Unix simply tracks file size and detects EOF conditionally.