Operating System MCQs with Answers
Practice important Operating System MCQs with answers and explanations.
Multiple Choice Questions
Q1151: Which file access method reads and writes data in order, one record after the other?
- A: Sequential access
- B: Random access
- C: Direct access
- D: Sequential write
View Answer
A
Q1152: A file in UNIX/Linux can be opened using the __________ system call.
- A: open
- B: close
- C: read
- D: write
View Answer
A
Q1153: In UNIX, the 'pwd' command is used to display __________.
- A: The current directory
- B: The root directory
- C: The parent directory
- D: The home directory
View Answer
A
Q1154: Which of the following is an example of an absolute pathname in UNIX?
- A: /home/user/documents
- B: ~user/documents
- C: ./a.out
- D: ../../bin
View Answer
A
Q1155: What is a directory structure used for in an operating system?
- A: Storing file names and paths
- B: Managing file permissions
- C: Handling file operations
- D: Executing file commands
View Answer
A
Q1156: In UNIX, the 'unlink' system call is used to __________.
- A: Delete a file
- B: Create a file
- C: Write to a file
- D: Open a file
View Answer
A
Q1157: Which of the following is a file attribute in an operating system?
- A: Access mode
- B: Directory name
- C: File name
- D: Password
View Answer
A
Q1158: The 'ls' command in UNIX is used to __________.
- A: List files in a directory
- B: Change directories
- C: Create directories
- D: Delete files
View Answer
A
Q1159: Which file type is used in UNIX to allow communication between processes?
- A: FIFO
- B: Directory
- C: Block-special file
- D: Character-special file
View Answer
A
Q1160: Files in UNIX are considered as __________ of bytes.
- A: Sequences
- B: Records
- C: Chunks
- D: Structures
View Answer
A