Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Chapter: 43
Q1181:
A link created in UNIX can point to files located on _______ file systems.
A. The same
B. Different
C. Multiple
D. Virtual
Correct Answer: B
Chapter: 43
Q1182:
The mount point in UNIX refers to the _______ where the file system is accessed.
A. Directory
B. File
C. Device
D. Network
Correct Answer: A
Chapter: 43
Q1183:
In UNIX, the umount command is used to _______ a mounted file system.
A. Add
B. Remove
C. Rename
D. View
Correct Answer: B
Chapter: 43
Q1184:
In a UNIX file system, a link file points to _______ in the file system.
A. A duplicate
B. A symbolic link
C. A hard link
D. An actual file
Correct Answer: D
Chapter: 43
Q1185:
If cycles are allowed in a general graph directory, _______ occurs.
A. No deletion
B. Dangling pointers
C. Redundant files
D. Traversal loops
Correct Answer: D
Chapter: 43
Q1186:
Soft links in UNIX can be created for _______ and across file systems.
A. Files only
B. Directories only
C. Both files and directories
D. Only directories
Correct Answer: C
Chapter: 43
Q1187:
In UNIX, the file system is arranged as a _______ starting from the root directory.
A. Tree structure
B. Web structure
C. Graph structure
D. Linear structure
Correct Answer: A
Chapter: 43
Q1188:
_______ is a time-consuming method of collecting free space due to cycles in the graph directory.
A. Garbage collection
B. Cycle detection
C. Link removal
D. File system check
Correct Answer: A
Chapter: 43
Q1189:
A UNIX system can have multiple file systems mounted at different _______.
A. Points
B. Devices
C. Directories
D. Files
Correct Answer: A
Chapter: 43
Q1190:
To create a private file that only you can edit in UNIX, the chmod command would use mode _______.
A. 775
B. 600
C. 777
D. 400
Correct Answer: B
Chapter: 43
Q1191:
UNIX file systems can be split to different devices, such as _______.
A. Virtual disks
B. Remote systems
C. Physical disks
D. All of the above
Correct Answer: D
Chapter: 43
Q1192:
A UNIX system mounts a file system at a specific _______ in the directory structure.
A. Point
B. File
C. Device
D. Root
Correct Answer: A
Chapter: 43
Q1193:
A file is deleted when all links to it are _______.
A. Renamed
B. Broken
C. Deleted
D. Refreshed
Correct Answer: C
Chapter: 43
Q1194:
In UNIX, the reference count for a file is incremented when a _______ is created.
A. Link
B. File
C. Directory
D. Permission
Correct Answer: A
Chapter: 43
Q1195:
UNIX uses _______ to handle the deletion of files that have no remaining references.
A. Hard links
B. Soft links
C. Garbage collection
D. Cycle detection
Correct Answer: C
Chapter: 44
Q1196:
What is the purpose of file protection?
A. To prevent unauthorized access
B. To provide free access
C. To delete files
D. To execute files
Correct Answer: A
Chapter: 44
Q1197:
Which permission in UNIX allows loading a file into memory and executing it?
A. Read
B. Write
C. Execute
D. Append
Correct Answer: C
Chapter: 44
Q1198:
Which command is used to set permission bits on newly created files and directories in UNIX?
A. umask
B. chmod
C. rmdir
D. mkdir
Correct Answer: A
Chapter: 44
Q1199:
In UNIX, the execute permission on a directory allows which operation?
A. Read the directory
B. Delete files in the directory
C. Search the directory
D. Append files in the directory
Correct Answer: C
Chapter: 44
Q1200:
What is the default permission for executable files and directories in UNIX/Linux?
A. 777
B. 755
C. 666
D. 444
Correct Answer: A

Test Your Knowledge

Take a timed quiz on Operating System

🚀 Start Quiz Now