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
C
Correct answer
Explanation
This type of file system is used to build a Linux file system on a device, usually a hard disk partition, and that returns exit code as 0 on success and 1 on failure.
-
Ordinary files
-
Devices
-
Links
-
Directories
-
/tmp
B
Correct answer
Explanation
These items stored in UNIX file system provide applications with easy access to hardware devices and UNIX allows them to be used in much the same way as ordinary files.
-
Structures
-
Arrays
-
Variables
-
Files
D
Correct answer
Explanation
Files are used for permanent storage of data in computer systems. While variables, arrays, and structures store data temporarily in RAM (volatile memory), files store data on secondary storage devices (hard disks, SSDs) which retain data even when power is turned off (non-volatile). This makes files suitable for long-term data persistence.
-
a text stream
-
a binary stream
-
both 1 and 2
-
an I/O operation
C
Correct answer
Explanation
In C and many programming languages, I/O streams can be configured as either text streams (performing newline translation and other text-specific processing) or binary streams (performing no such transformations, reading/writing raw bytes). The distinction is fundamental to file I/O operations.
D
Correct answer
Explanation
The linker takes object files (.obj or .o) produced by compilers and combines them into a single executable file (.exe on Windows, no extension on Unix). It resolves external references between object files and assigns final memory addresses. The linker produces the final executable that can be run directly.
-
ISAM
-
VSAM
-
Sequential
-
B-Tree index
-
None of these
C
Correct answer
Explanation
Sequential file organizations are efficient ways for the selection of files or loading data from servers with a high degree of file activity.
-
8
-
255
-
Any number of characters
-
None of the above
A
Correct answer
Explanation
Traditional DOS uses the 8.3 file naming convention - up to 8 characters for the filename and exactly 3 characters for the extension. This limitation was a defining characteristic of DOS file systems. Modern systems support longer filenames.
-
Dir ?B*.*
-
Dir?B?.
-
Dir*B*.*
-
None of the above
B
Correct answer
Explanation
The pattern '?B?.' matches files with at least 3 characters where the second character is 'B'. The first '?' matches any single character at position 1, 'B' matches position 2, the second '?' ensures position 3 exists (making it at least 3 chars), and '*' matches any remaining characters.
D
Correct answer
Explanation
The .BAK extension is the standard convention for backup files in many operating systems, particularly DOS and Windows. When you save a backup copy, programs often append .BAK to preserve the original. TXT is for text files, COM for executable commands, and BAS for BASIC program source code - none of these indicate backup status.
-
It goes to recycle bIn.
-
It goes to hard disk.
-
It is permanently deleted.
-
None of these
C
Correct answer
Explanation
It is permanently deleted.
-
.svr
-
.scr
-
.src
-
None of these
-
My Computer
-
My Documents
-
Control Panel
-
Window Explorer