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
-
yellow icons
-
blue icons
-
green icons
-
red icons
A
Correct answer
Explanation
In standard Windows interfaces, folders are represented by yellow icons to distinguish them from file types. This visual convention has been consistent across many versions of the OS.
-
text
-
graphics
-
audio
-
all of the above
D
Correct answer
Explanation
Files are digital containers that can hold various types of data, including text, images, audio, and video. The file extension usually determines how the computer interprets the contents.
-
deleting the folder
-
dragging it with your mouse to the new folder
-
creating a new folder
-
none of the above
B
Correct answer
Explanation
Dragging and dropping a file with the mouse is the standard graphical user interface method for moving files between folders.
-
clicking on the file with your right mouse button and selecting delete
-
clicking on the file and pressing delete on the keyboard
-
all of the above
-
none of the above
C
Correct answer
Explanation
Users can delete files by using the context menu (right-click) or by selecting the file and using the Delete key on the keyboard.
-
the name of the file
-
the date on which the file was created
-
the text that the file contains
-
all of the above
D
Correct answer
Explanation
Windows search functionality is robust and allows users to filter files by various metadata, including name, date, and content keywords.
-
according to the date of creation or modification
-
according to the date of lost
-
both (1) and (2)
-
none of the above
A
Correct answer
Explanation
The date tab in file search utilities is designed to locate files based on timestamps such as when they were created or last modified.
-
Random file
-
Sequential file
-
Archive file
-
Serial file
C
Correct answer
Explanation
An archive file is a file that has been moved to long-term or lower-level storage because it is not currently needed for active processing.
-
fileOpen (filenm, "r")
-
fileOpen (filenm, "ra")
-
fileOpen (filenm, "read")
-
fopen (filenm, "read")
-
fopen (filenm, "r")
E
Correct answer
Explanation
In C, the standard library function to open a file is fopen. The mode 'r' is used to open a file for reading in text mode.
-
FILE f
-
FILE *f
-
int f
-
struct FILE f
-
char *f
B
Correct answer
Explanation
The fopen function returns a pointer to a FILE structure, which is used to manage the file stream. Therefore, the variable f must be declared as FILE *f.
-
master file.
-
data file.
-
access method.
-
All of the above.
-
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
-
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.