Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Multiple Choice Questions

Q1201: What is the inode in UNIX?
  • A: A data structure that contains file attributes
  • B: An algorithm for file allocation
  • C: A permission for executing a file
  • D: A file descriptor
View Answer
B

Q1202: What does the umask command do?
  • A: It sets permissions for an existing file
  • B: It displays the current mask value
  • C: It sets the default permissions for newly created files
  • D: It lists files in a directory
View Answer
C

Q1203: Which method of file space allocation requires each file to occupy contiguous blocks on the disk?
  • A: Contiguous allocation
  • B: Linked allocation
  • C: Indexed allocation
  • D: Direct allocation
View Answer
A

Q1204: Which of the following is a disadvantage of contiguous file allocation?
  • A: External fragmentation
  • B: Slow access to files
  • C: No random access
  • D: High overhead
View Answer
A

Q1205: Which space allocation method does not suffer from external fragmentation?
  • A: Contiguous allocation
  • B: Linked allocation
  • C: Indexed allocation
  • D: Direct allocation
View Answer
B

Q1206: What does the file control block (FCB) store in UNIX?
  • A: File's contents
  • B: File's permissions
  • C: File's inode and other attributes
  • D: File's name and location
View Answer
C

Q1207: Which of the following commands displays permissions for all files and directories in your home directory?
  • A: ls –l ~
  • B: ls –ld ~
  • C: chmod 755 ~
  • D: chmod 700 ~
View Answer
A

Q1208: In the chmod 761 game1 command, what permission is granted to the group?
  • A: Read and write only
  • B: Execute only
  • C: Read, write, and execute
  • D: Read only
View Answer
B

Q1209: What is a major disadvantage of linked allocation?
  • A: External fragmentation
  • B: No support for sequential access
  • C: Slow file growth
  • D: Inefficient for random access files
View Answer
D

Q1210: Which allocation method is more efficient for supporting direct access to a file?
  • A: Contiguous allocation
  • B: Linked allocation
  • C: Indexed allocation
  • D: None of the above
View Answer
C

Test Your Knowledge

Take a timed quiz on Operating System

🚀 Start Quiz Now