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
D
Correct answer
Explanation
JPEG, BMP, and GIF are all common image file formats used for storing digital images. TMP is a generic temporary file extension used by many applications for intermediate storage, not specifically for images. Temporary files can contain any type of data.
-
the meta data file that contains name-value pairs organized in different sections
-
specific file contained within a JAR archive
-
the manifest file is named MANIFST.MFT
-
All the above
A,B
Correct answer
Explanation
A manifest file is a metadata file containing name-value pairs organized in sections, and it is a specific file (MANIFEST.MF) contained within a JAR archive.
-
UNICODE
-
Hexadecimal
-
UTF-8
-
ASCII
-
None of the above
E
Correct answer
Explanation
Mainframe files traditionally use EBCDIC encoding, not UNICODE, Hexadecimal, UTF-8, or ASCII. Since EBCDIC isn't listed among options A-D, option E (None of the above) is the correct choice.
B
Correct answer
Explanation
The lp command submits files for printing to a printer; it does not split files. The split command is used to break files into segments.
A
Correct answer
Explanation
The more command is a pager that displays file content one screenful at a time. It supports navigation in both directions using Space (forward), b (backward), Enter (one line forward), and k (one line backward).
-
/etc/mnttab
-
/etc/fstab
-
/etc/rmtab
-
/etc/exports
C
Correct answer
Explanation
The /etc/rmtab file in NFS server configurations maintains a list of clients that currently have the server's NFS file systems mounted. /etc/mnttab lists mounted filesystems on the local system, /etc/fstab contains filesystem mounting configuration, and /etc/exports defines which filesystems are available for NFS export.
-
/etc/fstab
-
/etc/filesystem
-
/etc/default/fs
-
/var/adm/sbtab
C
Correct answer
Explanation
/etc/default/fs on HP-UX defines the default file system type for system operations. When creating file systems without specifying a type, utilities reference this file to determine whether to use HFS, VxFS, or another supported type. /etc/fstab mounts filesystems, /etc/filesystem doesn't exist, and /var/adm/sbtab is unrelated.
-
Regular Files
-
Directory Files
-
Mode Files
-
Special Files
A,B,D
Correct answer
Explanation
UNIX/Linux systems have three main file types: regular files (A) containing data, directory files (B) that organize other files, and special files (D) representing devices or pipes. Mode files (C) is not a standard UNIX file type - mode refers to file permissions, not a file category.
C
Correct answer
Explanation
The ls command with -c flag lists files in column-wise format. The -l flag provides detailed long format, -C (note capital C) is different from -c, and -lc combines long format with column display. The question specifically asks for column-wise listing, which is the -c option.
-
--xr--r--
-
rw-r--r--
-
r--r--r--
-
rwxr--r--
B
Correct answer
Explanation
The default permissions for regular files in Unix are 644 (octal), which translates to rw-r--r--. This means the owner has read and write permissions, while group members and others have only read permission. This default is typically set by the umask value (commonly 022) that masks out write permissions for group and others.
B
Correct answer
Explanation
Tibco Hawk rulebase files are saved with the .hrb extension (Hawk RuleBase). This is the standard file format for saving and loading rulebase configurations in the Hawk system.
-
you can perform file I/O operations by using its methods
-
you can find size of the file by using its size() method
-
you can check if file exists by its exist() method
-
you can delete the file by its delete() method
-
To open a new file
-
To insert new text
-
To save and quit vi editor
-
To continue with search
D
Correct answer
Explanation
In vi, pressing 'n' after a search continues to the next occurrence of the search pattern. It works with both / (forward) and ? (backward) searches.
-
INDEXED
-
RELATIVE
-
SEQUENTIAL
-
All of the above
D
Correct answer
Explanation
In COBOL, INDEXED, RELATIVE, and SEQUENTIAL files can all be opened in any of the four open modes: INPUT, OUTPUT, I-O, and EXTEND, depending on the processing requirements.
-
Fixed Block file
-
Fixed Unblock file
-
Variable Block file
-
Variable Unblock file
A
Correct answer
Explanation
In COBOL, specifying BLOCK CONTAINS 0 records or characters tells the compiler that the blocking factor will be determined at runtime from the JCL (DCB parameters), which is standard practice for Fixed Blocked (FB) files.