Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 190
Q4121:
Once a client disconnects, the server needs to
A. disable the pipe
B. reboot the system
C. connect with another client
D. perform no action
Correct Answer: C
Chapter: 190
Q4122:
Communication in named pipe is initiated by
A. server
B. client operating system
C. client code
D. user input
Correct Answer: C
Chapter: 190
Q4123:
Which of the following functions returns FALSE when the client disconnects?
A. WriteFile()
B. CloseHandle()
C. ReadFile()
D. ConnectNamedPipe()
Correct Answer: C
Chapter: 190
Q4124:
A server can serve multiple clients sequentially after
A. resting pipe
B. previous clients disconnect
C. closing all connections
D. restarting pipe handler
Correct Answer: B
Chapter: 190
Q4125:
The client uses _______ to perform Read and Write operations.
A. WriteFile() & ReadFile()
B. CreateFile() & OpenPipe()
C. WritePipe() & ReadPipe()
D. CreatePipe() & ConnectPipe()
Correct Answer: A
Chapter: 190
Q4126:
The server must wait for client disconnection before
A. connecting to another
B. server shutdown
C. server registration
D. error message is thrown
Correct Answer: A
Chapter: 190
Q4127:
_______ function used by the client initiates connection with the pipe.
A. CreateFile()
B. ReadFile()
C. WritePipe()
D. MakePipe()
Correct Answer: A
Chapter: 190
Q4128:
Server waits for the client to connect after
A. DisconnectNamedPipe()
B. ReadFile()
C. NamedPipe creation
D. Server shutdown
Correct Answer: A
Chapter: 190
Q4129:
Client disconnects after performing _______ operations.
A. Read only
B. Write only
C. Read and Write
D. Close only
Correct Answer: C
Chapter: 190
Q4130:
The client connects using _______.
A. CreateHandle()
B. CreateFile()
C. ConnectPipe()
D. ReadConnect()
Correct Answer: B
Chapter: 190
Q4131:
The server detects client disconnection via _______.
A. ReadFile()
B. CloseHandle()
C. ConnectNamedPipe()
D. WriteConnect()
Correct Answer: A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now