Operating System MCQ - File System
File System MCQs : This section focuses on "File System" in Operating System. These Multiple Choice Questions (MCQ) should be practiced to improve the Operating System skills required for various interviews (campus interview, walk-in interview, company interview), placements, entrance exams and other competitive examinations.
1. A file is a sequence of?
A. bits
B. bytes
C. lines
D. All of the above
View Answer
Ans : D
Explanation: A file is a sequence of bits, bytes, lines or records whose meaning is defined by the files creator and user.
2. __________ is a sequence of bytes organized into blocks that are understandable by the machine.
A. object file
B. source file
C. text file
D. None of the above
View Answer
Ans : A
Explanation: An object file is a sequence of bytes organized into blocks that are understandable by the machine.
3. _________ is a sequence of procedures and functions.
A. object file
B. source file
C. text file
D. None of the above
View Answer
Ans : B
Explanation: A source file is a sequence of procedures and functions.
4. What is true about Ordinary files?
A. These are the files that contain user information.
B. These files contain list of file names and other information related to these files.
C. These files represent physical device like disks, terminals, printers, networks, tape drive etc.
D. All of the above
View Answer
Ans : A
Explanation: Ordinary files : These are the files that contain user information.
5. What is true about Directory files?
A. These files represent physical device like disks, terminals, printers, networks, tape drive etc.
B. These may have text, databases or executable program.
C. These files contain list of file names and other information related to these files.
D. All of the above
View Answer
Ans : C
Explanation: Directory files :These files contain list of file names and other information related to these files.
6. Special files : These files are also known as?
A. Character special files
B. Block special files
C. device files
D. Data files
View Answer
Ans : C
Explanation: Special files : These files are also known as device files.
7. In Space Allocation, Which of the following ways are correct to allocate disk space to files?
A. Contiguous Allocation
B. Linked Allocation
C. Indexed Allocation
D. All of the above
View Answer
Ans : D
Explanation: Operating systems deploy following three main ways to allocate disk space to files :Contiguous Allocation, Linked Allocation, Indexed Allocation.
8. What is the real disadvantage of a linear list of directory entries?
A. size of the linear list in memory
B. linear search to find a file
C. it is not reliable
D. All of the above
View Answer
Ans : B
Explanation: linear search to find a file is the real disadvantage of a linear list of directory entries.
9. What is raw disk?
A. disk without file system
B. empty disk
C. disk lacking logical file system
D. disk having file system
View Answer
Ans : A
Explanation: raw disk is disk without file system
10. In ___________ writes, the data is stored in the cache.
A. Asynchronous
B. Regular
C. Synchronous
D. Irregular
View Answer
Ans : A
Explanation: Asynchronous writes, the data is stored in the cache.
Discussion