System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
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
View Answer
C
Q4122: Communication in named pipe is initiated by
- A: server
- B: client operating system
- C: client code
- D: user input
View Answer
C
Q4123: Which of the following functions returns FALSE when the client disconnects?
- A: WriteFile()
- B: CloseHandle()
- C: ReadFile()
- D: ConnectNamedPipe()
View Answer
C
Q4124: A server can serve multiple clients sequentially after
- A: resting pipe
- B: previous clients disconnect
- C: closing all connections
- D: restarting pipe handler
View Answer
B
Q4125: The client uses _______ to perform Read and Write operations.
- A: WriteFile() & ReadFile()
- B: CreateFile() & OpenPipe()
- C: WritePipe() & ReadPipe()
- D: CreatePipe() & ConnectPipe()
View Answer
A
Q4126: The server must wait for client disconnection before
- A: connecting to another
- B: server shutdown
- C: server registration
- D: error message is thrown
View Answer
A
Q4127: _______ function used by the client initiates connection with the pipe.
- A: CreateFile()
- B: ReadFile()
- C: WritePipe()
- D: MakePipe()
View Answer
A
Q4128: Server waits for the client to connect after
- A: DisconnectNamedPipe()
- B: ReadFile()
- C: NamedPipe creation
- D: Server shutdown
View Answer
A
Q4129: Client disconnects after performing _______ operations.
- A: Read only
- B: Write only
- C: Read and Write
- D: Close only
View Answer
C
Q4130: The client connects using _______.
- A: CreateHandle()
- B: CreateFile()
- C: ConnectPipe()
- D: ReadConnect()
View Answer
B