System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q4011: One reason named pipes are powerful is that
- A: they are hard to use
- B: they are single-threaded
- C: they simplify client/server operations
- D: they prevent parallel access
View Answer
C
Q4012: Named pipes allow ________ messaging between two processes.
- A: unordered
- B: synchronous
- C: message-oriented
- D: random
View Answer
B
Q4013: Named pipes help to simplify ________ operations.
- A: thread
- B: lock
- C: client/server
- D: event-handling
View Answer
C
Q4014: Which function is used to create a named pipe?
- A: CreatePipe()
- B: CreateNamedPipe()
- C: OpenPipe()
- D: InitNamedPipe()
View Answer
B
Q4015: CreateNamedPipe() returns a
- A: pipe name
- B: thread ID
- C: file handle
- D: process ID
View Answer
C
Q4016: The number of clients a pipe can support is defined by
- A: the pipe name
- B: the data buffer size
- C: the maximum number of instances
- D: the client ID
View Answer
C
Q4017: In a named pipe setup, the creating process is usually called the
- A: server
- B: client
- C: handler
- D: thread
View Answer
A
Q4018: Which function do client processes use to connect to a named pipe?
- A: OpenFile()
- B: CreatePipe()
- C: CreateFile()
- D: ConnectPipe()
View Answer
C
Q4019: A separate ______ is created by the server for each pipe instance.
- A: pipe
- B: file
- C: thread
- D: event
View Answer
C
Q4020: Each client in a named pipe system is given
- A: a shared buffer
- B: a dedicated pipe instance
- C: a static connection
- D: a polling queue
View Answer
B