Operating System MCQs with Answers
Practice important Operating System MCQs with answers and explanations.
Multiple Choice Questions
Q1161: The main role of the inode in UNIX is to store __________.
- A: File contents
- B: File permissions
- C: File size
- D: File attributes
View Answer
D
Q1162: Acyclic-graph directory structure allows _______ between directories and files.
- A: duplication
- B: sharing
- C: isolation
- D: redundancy
View Answer
B
Q1163: In UNIX, the command ln -s is used to create _______.
- A: Hard link
- B: Soft link
- C: Directory link
- D: File copy
View Answer
B
Q1164: The file deletion process in UNIX can avoid _______ by maintaining a reference count.
- A: Dangling pointers
- B: File corruption
- C: Link creation
- D: Directory traversal
View Answer
A
Q1165: Hard links in UNIX can be created between files on _______ file systems.
- A: Different
- B: Same
- C: External
- D: Virtual
View Answer
B
Q1166: A soft link in UNIX creates a _______ file containing the pathname of the actual file.
- A: Duplicate
- B: Link file
- C: Symbolic alias
- D: New directory
View Answer
B
Q1167: A reference count of 0 for a file in UNIX indicates that the file can be _______.
- A: Moved
- B: Deleted
- C: Shared
- D: Renamed
View Answer
B
Q1168: The UNIX command to mount a file system is _______.
- A: mount
- B: link
- C: mkdir
- D: rmdir
View Answer
A
Q1169: A cycle detection algorithm is used in a _______ directory structure.
- A: Acyclic-graph
- B: Hard link
- C: Soft link
- D: General graph
View Answer
D
Q1170: The chmod command in UNIX is used to _______.
- A: Change ownership
- B: Change file permissions
- C: Create directories
- D: Delete files
View Answer
B