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
-
master file.
-
data file.
-
access method.
-
All of the above.
B
Correct answer
Explanation
A transaction file in data processing is a type of data file that holds temporary or transient data records to be processed later against a master file.
-
update files
-
print files on paper
-
enter data
-
none of these
B
Correct answer
Explanation
A report generator is a tool used to extract data from a database and format it into a readable document, typically for printing or display on paper.
-
updating
-
upgrading
-
restructuring
-
renewing
A
Correct answer
Explanation
The process of maintaining a file by adding, changing, or deleting records is known as file updating.
-
fp is a file pointer
-
position the read-write-head at the start of the file
-
position the read-write-head at the end of the file
-
erase the contents of the file
B
Correct answer
Explanation
In standard C I/O library, fseek(fp, offset, whence) is used to move the file position indicator. Passing 0L as the offset and 0 (SEEK_SET) as the whence argument positions the read-write head at the beginning of the file.
-
ios::app
-
ios::in
-
ios::trunc
-
ios::nocreate
C
Correct answer
Explanation
When a file is opened in ios::out mode, it is opened for writing. By default, this mode also includes ios::trunc, which clears the file contents if it already exists.
-
FileInputStream
-
BufferedInputStream
-
DataInputStream
-
None of these
A
Correct answer
Explanation
This stream is classified as mode stream as it read and write data from disk.
-
Owner of file
-
Name of file
-
Permissions of file
-
Date of creation
B
Correct answer
Explanation
Inode does not have file name because it contains file size, creation date, owner of file, permissions of file and last access of file.
-
replic
-
duplic
-
dup
-
none of these
C
Correct answer
Explanation
This system call is used to duplicate the file in another file.
-
The boot block
-
The meta block
-
The super block
-
The inode block
B
Correct answer
Explanation
No such component is present in the file system.
-
maintain pages of documents that are being spooled to the printer.
-
hold a program s data or instructions in virtual memory when it can t fit in RAM.
-
prevent thrashing in a multitasking environment.
-
allow multiple print jobs to print their pages out simultaneously.
-
A file is a collection of related pieces of information stored together for easy reference.
-
Files can be generated from an application.
-
Files are stored in RAM.
-
Files should be organized in folders.
-
an open folder.
-
the folder contains subfolders.
-
a text file
-
a graphics file.
-
List
-
Thumbnails
-
Details
-
Icon
-
limit.h
-
float.h
-
Both of the above
-
None of the above
C
Correct answer
Explanation
In C programming, 'limits.h' contains information about integer type sizes, and 'float.h' contains information about floating-point type sizes. Therefore, both are correct.
-
< * . h >
-
<* . * . h >
-
< find.h >
-
None of the above