System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q3991: The process creation functions used in the code are
- A: CreateFile() and ReadFile()
- B: CreateProcess() and WaitForSingleObject()
- C: CreatePipe() and InitProcess()
- D: CreateHandle() and StartProcess()
View Answer
B
Q3992: The `dwFlags` field in STARTUPINFO structure is set to
- A: STARTF_USESTDHANDLES
- B: to enable pipe streaming
- C: to execute background process
- D: to set default values
View Answer
A
Q3993: The STARTUPINFO structure is used to
- A: initialize the input/output/error handles
- B: initialize security settings
- C: define command structure
- D: store thread IDs
View Answer
A
Q3994: Which IPC mechanism supports message-oriented communication between processes?
- A: Anonymous pipes
- B: Memory-mapped files
- C: Named pipes
- D: Semaphores
View Answer
C
Q3995: Named pipes allow communication between processes on
- A: only the same machine
- B: different machines only
- C: the same or different machines
- D: only networked systems
View Answer
C
Q3996: Named pipes are ________, meaning two processes can communicate over the same pipe.
- A: unidirectional
- B: bi-directional
- C: half-duplex
- D: full-duplex
View Answer
B
Q3997: How many instances of a named pipe can exist at a time?
- A: Only one
- B: Two
- C: Multiple
- D: None
View Answer
C
Q3998: Anonymous pipes are considered
- A: complex and robust
- B: simple but limited
- C: message-based
- D: bi-directional
View Answer
B
Q3999: One major advantage of named pipes is that they support _______ communication.
- A: threaded
- B: message-oriented
- C: binary only
- D: parallel
View Answer
B
Q4000: A named pipe can be accessed remotely using its
- A: identifier
- B: address
- C: handle
- D: name
View Answer
D