Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 189
Q4101:
The function _______ is used to wait until the named pipe is available.
A. WaitNamedPipe()
B. ConnectNamedPipe()
C. ReadFile()
D. SleepPipe()
Correct Answer: A
Chapter: 189
Q4102:
To write to the pipe after connection, call
A. WritePipe()
B. WriteData()
C. WriteFile()
D. TransferPipe()
Correct Answer: C
Chapter: 189
Q4103:
________ must be called to disconnect the client after communication.
A. DisconnectNamedPipe()
B. RemoveClientPipe()
C. DisconnectPipe()
D. ResetPipe()
Correct Answer: A
Chapter: 189
Q4104:
A connected server reads messages using _______.
A. ReadClient()
B. ReadFile()
C. ReadPipe()
D. GetPipeMessage()
Correct Answer: B
Chapter: 189
Q4105:
_______ function allows the server to accept a client connection.
A. ConnectNamedPipe()
B. WaitNamedPipe()
C. ReadPipe()
D. LinkPipe()
Correct Answer: A
Chapter: 189
Q4106:
_______ enables the server to synchronize its connection wait with client actions.
A. ConnectNamedPipe()
B. WaitNamedPipe()
C. WaitClientPipe()
D. ConnectClientPipe()
Correct Answer: B
Chapter: 189
Q4107:
The function that sends messages after connection is _______.
A. SendPipe()
B. TransmitPipe()
C. WriteFile()
D. WritePipeData()
Correct Answer: C
Chapter: 189
Q4108:
A pipe handle is disconnected using _______.
A. DisconnectNamedPipe()
B. HandleClosePipe()
C. DisconnectClient()
D. CloseNamedPipe()
Correct Answer: A
Chapter: 189
Q4109:
The function signature of ConnectNamedPipe includes HANDLE and _______.
A. DWORD
B. LPCVOID
C. LPOVERLAPPED
D. LPSTR
Correct Answer: C
Chapter: 190
Q4110:
What happens when a client disconnects from a named pipe?
A. WriteFile() fails
B. ReadFile() returns FALSE
C. Server shuts down
D. ConnectNamedPipe() returns FALSE
Correct Answer: B
Chapter: 190
Q4111:
In a named pipe connection, which function is used by the client to initiate communication?
A. ConnectNamedPipe()
B. CreatePipe()
C. CreateFile()
D. OpenClient()
Correct Answer: C
Chapter: 190
Q4112:
After the client disconnects, what is the indication on the server side?
A. WriteFile() returns 0
B. ReadFile() returns FALSE
C. Server auto-reconnects
D. Named pipe resets
Correct Answer: B
Chapter: 190
Q4113:
After a client disconnects, the server can
A. terminate
B. reboot
C. connect with another client
D. close the pipe
Correct Answer: C
Chapter: 190
Q4114:
The server begins by making a _______ connection.
A. client
B. file
C. process
D. stream
Correct Answer: A
Chapter: 190
Q4115:
The client communicates using _______ function.
A. CreatePipe()
B. WritePipe()
C. CreateFile()
D. OpenNamedPipe()
Correct Answer: C
Chapter: 190
Q4116:
After completing its operations, the client _______
A. disconnects
B. pauses
C. reboots
D. terminates connection without notice
Correct Answer: A
Chapter: 190
Q4117:
When ReadFile() returns FALSE, it means
A. connection is active
B. connection is completed
C. client has disconnected
D. data read is successful
Correct Answer: C
Chapter: 190
Q4118:
On the server side, a disconnected connection allows
A. new connections only
B. admin login only
C. read-only access only
D. write-only access only
Correct Answer: A
Chapter: 190
Q4119:
The client can connect again after
A. pipe is reset
B. pipe is recreated
C. previous connection ends
D. server reboots
Correct Answer: C
Chapter: 190
Q4120:
Read and Write operations in client are performed after
A. pipe creation
B. client authentication
C. CreateFile() call
D. NamedPipe validation
Correct Answer: C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now