Operating System MCQs with Answers
Practice important Operating System MCQs with answers and explanations.
Multiple Choice Questions
Q1211: Which of the following commands sets the default mask value to octal 022?
- A: umask 022
- B: umask 755
- C: chmod 022
- D: chmod 755
View Answer
A
Q1212: Which permission in UNIX allows writing or rewriting data to a file?
- A: Read
- B: Write
- C: Execute
- D: Append
View Answer
B
Q1213: What does the 'x' permission in UNIX signify?
- A: Execute the file
- B: Write to the file
- C: Read from the file
- D: Append to the file
View Answer
A
Q1214: In UNIX, what does the directory entry for each file contain?
- A: File permissions
- B: File size and location
- C: File control block
- D: File's inode pointer
View Answer
B
Q1215: Which of the following is true about the linked allocation method?
- A: Supports random access
- B: Does not suffer from external fragmentation
- C: Uses contiguous blocks
- D: Requires file size declaration
View Answer
B
Q1216: In indexed allocation, what is the function of the index block?
- A: It stores the file's contents
- B: It points to the file's data blocks
- C: It stores the file's permissions
- D: It contains the file's inode pointer
View Answer
B
Q1217: What is the main advantage of linked allocation over contiguous allocation?
- A: No external fragmentation
- B: Supports direct access to files
- C: Requires less memory space
- D: None of the above
View Answer
A
Q1218: Which of the following commands sets the permissions for the home directory to 700?
- A: chmod 700 ~
- B: umask 700
- C: chmod 755 ~
- D: chmod 744 ~
View Answer
A
Q1219: When a file is opened in UNIX, where is the pointer to its inode stored?
- A: In the directory entry
- B: In the system-wide open file table
- C: In the file's FCB
- D: In the per-process file descriptor table
View Answer
B
Q1220: Fill in the blank: In UNIX, the default permission for text files is ________.
- A: 777
- B: 666
- C: 755
- D: 700
View Answer
B