System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Chapter: 184
Q4001:
Named pipes are useful for which type of applications?
A. system bootloaders
B. graphics rendering
C. file I/O only
D. client/server and networked file access
Correct Answer:
D
Chapter: 184
Q4002:
Which type of pipe allows clients to access it by name over a network?
A. Threaded pipe
B. Buffered pipe
C. Named pipe
D. Anonymous pipe
Correct Answer:
C
Chapter: 184
Q4003:
Named pipes are useful in a _______ system.
A. client/server
B. distributed
C. monolithic
D. file
Correct Answer:
A
Chapter: 184
Q4004:
The reading process in a named pipe reads messages _______.
A. randomly
B. in reverse
C. precisely as sent
D. only when the pipe is closed
Correct Answer:
C
Chapter: 184
Q4005:
In IPC, named pipes are considered more advanced than
A. network sockets
B. shared memory
C. semaphores
D. anonymous pipes
Correct Answer:
D
Chapter: 184
Q4006:
Named pipes can be used when
A. only reading is needed
B. bidirectional data transfer is required
C. processes are unrelated
D. network access is not necessary
Correct Answer:
B
Chapter: 184
Q4007:
The feature that allows multiple clients to communicate with the server simultaneously is called
A. pipe aggregation
B. instance handling
C. message queueing
D. multi-threading
Correct Answer:
A
Chapter: 184
Q4008:
______ pipes are message-oriented.
A. Anonymous
B. Named
C. Standard
D. Error
Correct Answer:
B
Chapter: 184
Q4009:
Two processes can exchange data in both directions using
A. anonymous pipes
B. named pipes
C. thread-safe queues
D. sockets
Correct Answer:
B
Chapter: 184
Q4010:
In named pipes, separate instances allow
A. for data loss
B. one-way communication
C. dedicated client communication
D. conflicting data handling
Correct Answer:
C
Chapter: 184
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
Correct Answer:
C
Chapter: 184
Q4012:
Named pipes allow ________ messaging between two processes.
A. unordered
B. synchronous
C. message-oriented
D. random
Correct Answer:
B
Chapter: 184
Q4013:
Named pipes help to simplify ________ operations.
A. thread
B. lock
C. client/server
D. event-handling
Correct Answer:
C
Chapter: 185
Q4014:
Which function is used to create a named pipe?
A. CreatePipe()
B. CreateNamedPipe()
C. OpenPipe()
D. InitNamedPipe()
Correct Answer:
B
Chapter: 185
Q4015:
CreateNamedPipe() returns a
A. pipe name
B. thread ID
C. file handle
D. process ID
Correct Answer:
C
Chapter: 185
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
Correct Answer:
C
Chapter: 185
Q4017:
In a named pipe setup, the creating process is usually called the
A. server
B. client
C. handler
D. thread
Correct Answer:
A
Chapter: 185
Q4018:
Which function do client processes use to connect to a named pipe?
A. OpenFile()
B. CreatePipe()
C. CreateFile()
D. ConnectPipe()
Correct Answer:
C
Chapter: 185
Q4019:
A separate ______ is created by the server for each pipe instance.
A. pipe
B. file
C. thread
D. event
Correct Answer:
C
Chapter: 185
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
Correct Answer:
B