Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Multiple Choice Questions

Q1141: What is the key benefit of using a tree directory structure in UNIX?
  • A: Easy file access
  • B: Allows user-defined directories
  • C: Efficient searching
  • D: Minimizes disk space usage
View Answer
C

Q1142: Which of the following file extensions in UNIX is used for executable files?
  • A: .txt
  • B: .exe
  • C: .sh
  • D: .c
View Answer
B

Q1143: Which system call is used to close a file in UNIX?
  • A: close
  • B: unlink
  • C: write
  • D: read
View Answer
A

Q1144: In UNIX, the __________ system call is used to search for a file in a directory.
  • A: opendir
  • B: readdir
  • C: rewinddir
  • D: ls
View Answer
A

Q1145: The protection attribute of a file determines __________.
  • A: Who can execute the file
  • B: Who can access the file
  • C: Who can write to the file
  • D: All of the above
View Answer
D

Q1146: Which of the following is not a directory operation in UNIX?
  • A: open
  • B: create
  • C: read
  • D: change directory
View Answer
B

Q1147: In UNIX, a symbolic link is represented by the __________ file type.
  • A: link
  • B: file
  • C: symbolic file
  • D: directory
View Answer
C

Q1148: The __________ file type in UNIX allows communication between processes on different computers.
  • A: socket
  • B: ordinary file
  • C: FIFO
  • D: block-special file
View Answer
A

Q1149: Which system call is used to create a symbolic link in UNIX?
  • A: ln
  • B: ln -s
  • C: mkfifo
  • D: mknod
View Answer
B

Q1150: Which type of file in UNIX corresponds to block-oriented devices such as disks?
  • A: Character-special file
  • B: Socket
  • C: Block-special file
  • D: Directory
View Answer
C

Test Your Knowledge

Take a timed quiz on Operating System

🚀 Start Quiz Now