Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Chapter: 42
Q1161:
The main role of the inode in UNIX is to store __________.
A. File contents
B. File permissions
C. File size
D. File attributes
Correct Answer: D
Chapter: 43
Q1162:
Acyclic-graph directory structure allows _______ between directories and files.
A. duplication
B. sharing
C. isolation
D. redundancy
Correct Answer: B
Chapter: 43
Q1163:
In UNIX, the command ln -s is used to create _______.
A. Hard link
B. Soft link
C. Directory link
D. File copy
Correct Answer: B
Chapter: 43
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
Correct Answer: A
Chapter: 43
Q1165:
Hard links in UNIX can be created between files on _______ file systems.
A. Different
B. Same
C. External
D. Virtual
Correct Answer: B
Chapter: 43
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
Correct Answer: B
Chapter: 43
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
Correct Answer: B
Chapter: 43
Q1168:
The UNIX command to mount a file system is _______.
A. mount
B. link
C. mkdir
D. rmdir
Correct Answer: A
Chapter: 43
Q1169:
A cycle detection algorithm is used in a _______ directory structure.
A. Acyclic-graph
B. Hard link
C. Soft link
D. General graph
Correct Answer: D
Chapter: 43
Q1170:
The chmod command in UNIX is used to _______.
A. Change ownership
B. Change file permissions
C. Create directories
D. Delete files
Correct Answer: B
Chapter: 43
Q1171:
In UNIX, a hard link to a file cannot be created for a _______ directory.
A. System
B. Root
C. Shared
D. Directory
Correct Answer: D
Chapter: 43
Q1172:
UNIX file systems use _______ to prevent cycles in a general graph directory.
A. Soft links
B. Hard links
C. Cycle detection
D. Backpointers
Correct Answer: C
Chapter: 43
Q1173:
A shared file in an acyclic-graph directory is _______ in two different directories.
A. Duplicated
B. Different
C. Same
D. Redundant
Correct Answer: C
Chapter: 43
Q1174:
In UNIX, _______ file types are created when a soft link is established.
A. Regular
B. Link
C. Hidden
D. Symbolic
Correct Answer: B
Chapter: 43
Q1175:
A file can be deleted in UNIX when its _______ count reaches 0.
A. Reference
B. Link
C. Access
D. Modification
Correct Answer: A
Chapter: 43
Q1176:
When mounting in UNIX, the dir refers to the _______ where the file system will be attached.
A. Device
B. Mount point
C. File
D. Directory
Correct Answer: B
Chapter: 43
Q1177:
A file system's root is represented by the directory _______ in UNIX.
A. /dev
B. /
C. /etc
D. /root
Correct Answer: B
Chapter: 43
Q1178:
The df command in UNIX is used to display _______ usage.
A. Disk space
B. Memory
C. CPU
D. Network
Correct Answer: A
Chapter: 43
Q1179:
A _______ is a directory entry in UNIX that points to another file or subdirectory.
A. File
B. Link
C. Symbol
D. Pointer
Correct Answer: B
Chapter: 43
Q1180:
UNIX supports _______ types of links.
A. 1
B. 2
C. 3
D. 4
Correct Answer: B

Test Your Knowledge

Take a timed quiz on Operating System

🚀 Start Quiz Now