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
-
fgetc
-
getc
-
fseek
-
all of the above
C
Correct answer
Explanation
It is used to set the file-position indicator for the stream pointed to by the stream. The new position is measured in bytes from the begning of the file and obtained by adding offset to the position specified by whence, whose values are defined in <stdio.h>. fseek() function is used to randomly access a file. For example: int fseek(FILE *stream, long offset, int whence);
-
Regular file, directories, device file
-
Regular disk file, special file, device file
-
Tape file, directories, special file
-
All of the above
A
Correct answer
Explanation
Regular file, Directory file and Device files are three types of files of Unix. The regular file is also called as ordinary file. Directory file is used for directories files and diectory. The device file is used for peripheral devices and other devices operations.
-
File modification time
-
File size
-
Directory name to which file belongs
-
File permissions
C
Correct answer
Explanation
We cannot find the file or directory name from inode. We can see the file type not file or directory name in inode attributes, so it is not a part of inode.
-
It is used to create tape archives.
-
It is used to add files.
-
All users are permitted to use tar.
-
It is used to extract files.
C
Correct answer
Explanation
All users are not authorized to access tar, only admin or authorized personnel have rights to use tar command.
-
stdio.h
-
assert.h
-
alloc.h
-
malloc.h
D
Correct answer
Explanation
stdio.h is used for the standard input/output.
assert.h contains the assert().
alloc.h contains the malloc(), calloc(), realloc() etc.
malloc.h is not a header file.
-
Any file name
-
Student.class
-
Student.java
-
Student
C
Correct answer
Explanation
The file name should be same as the class name containing the main method with an extension “.java”.
-
F2, F3, F1, F5, F6, F2
-
F2, F6, F5, F1, F4, F3
-
F1, F2, F3, F4, F5, F6
-
Ordering is immaterial as all files are accessed with the same frequency.
A
Correct answer
Explanation
Since, the access is sequential greater the distance greater will be the access time. Since, all files are referenced with equal frequency overall access time can be reduced by arranging them as in option (1).
-
identify the record in the list
-
identify the name, width and type of the fields of each record
-
identify the file in a record
-
both (1) and (2)
D
Correct answer
Explanation
To have a file holding a list, you need to: (1) identify which records belong in the list, and (2) identify the structure (name, width, type) of fields in each record. Option (3) about identifying a file in a record doesn't make semantic sense in this context. The correct answer combines (1) and (2) as both are necessary.
-
CGI - Bin
-
Recycle Bin
-
Bin
-
All of these
A
Correct answer
Explanation
CGI - BINThe map-definition file is generally stored in CGI - BIN, while designing a web page which is by default a directory to store map definition file whereas, Recycle Bin and Bin are the directories having different functionality, so treated as wrong options.
-
HMT extension
-
HTML extension
-
THM extension
-
None of these
B
Correct answer
Explanation
The MIME text file is saved with HTML extension to display (multiples internet mail extensions) the page on web browser, which is the standard extension for MIME text file. Whereas HMT extension and THM extension does not contain any functionality so, treated as wrong options.
-
F3, F1, F2, F4
-
F3, F2, F1, F4
-
F3, F2, F4, F1
-
F3, F4, F1, F2
-
None of these
B
Correct answer
Explanation
1 ZB = 1021 bytes
1 PB = 1015 bytes
1 TB = 1012 bytes
1 KB = 103 bytes
Now, increasing memory sizes of files will be F3 < F2.
This matches with option sequence, hence, this option is correct.
-
Portable Disk Format
-
Portable Disk File
-
Paper Document Format
-
Portable Document Format
-
None of these
D
Correct answer
Explanation
PDF stands for Portable Document Format.
-
Winword.exe
-
Word.exe
-
Msword.exe
-
Word2003.exe
-
None of these
A
Correct answer
Explanation
Winword.exe is the executable file that launches Microsoft Word. This naming convention has been consistent across Word versions - the 'win' prefix indicates Windows, and 'word' identifies the application. Other variations like Word.exe or Msword.exe are not the correct executable names.
-
Copy Con
-
Type
-
MD
-
RD
-
None of these
A
Correct answer
Explanation
COPY CON (copy from console) creates a file in DOS by accepting user input from the keyboard until Ctrl+Z is pressed. Type displays file contents, MD creates directories, and RD removes directories.
-
documentation
-
link
-
main program
-
none of these
B
Correct answer
Explanation
This section is used to declare the header files. These files are required to link to an appropriate function defined in it.