Operating System MCQs with Answers
Practice important Operating System MCQs with answers and explanations.
Multiple Choice Questions
Q1221: Which method of space allocation uses a linked list of disk blocks?
- A: Contiguous allocation
- B: Linked allocation
- C: Indexed allocation
- D: Direct allocation
View Answer
B
Q1222: What is a UNIX file descriptor?
- A: A pointer to the file's inode
- B: A pointer to the file's data block
- C: A pointer to the file's permissions
- D: A pointer to the system-wide open file table
View Answer
A
Q1223: Which command is used to display the default mask value in UNIX?
- A: umask
- B: ls
- C: chmod
- D: umask -v
View Answer
A
Q1224: What does the 'r' permission in UNIX allow you to do?
- A: Execute the file
- B: Read the file
- C: Write to the file
- D: Delete the file
View Answer
A
Q1225: What is the main disadvantage of the contiguous allocation method?
- A: External fragmentation
- B: File size estimation difficulty
- C: Slow access to files
- D: Supports limited types of access
View Answer
B
Q1226: Fill in the blank: The chmod command in UNIX is used to _________.
- A: set file permissions
- B: delete files
- C: create directories
- D: list files
View Answer
A
Q1227: What does indexed allocation support in file systems?
- A: Sequential access
- B: Direct access without external fragmentation
- C: Random access
- D: Indirect access
View Answer
B
Q1228: In UNIX systems, which attribute determines the maximum file size?
- A: Disk block size
- B: Number of direct pointers
- C: File system size
- D: Number of indirect pointers
View Answer
B
Q1229: A UNIX inode contains which of the following?
- A: File data
- B: Direct and indirect pointers to file blocks
- C: File metadata
- D: Block size
View Answer
B
Q1230: The FAT file system uses which of the following for space allocation?
- A: Linked list of files
- B: File Allocation Table (FAT)
- C: Multi-level index
- D: Linked directory entries
View Answer
B