System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q4111: In a named pipe connection, which function is used by the client to initiate communication?
- A: ConnectNamedPipe()
- B: CreatePipe()
- C: CreateFile()
- D: OpenClient()
View Answer
C
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
View Answer
B
Q4113: After a client disconnects, the server can
- A: terminate
- B: reboot
- C: connect with another client
- D: close the pipe
View Answer
C
Q4114: The server begins by making a _______ connection.
- A: client
- B: file
- C: process
- D: stream
View Answer
A
Q4115: The client communicates using _______ function.
- A: CreatePipe()
- B: WritePipe()
- C: CreateFile()
- D: OpenNamedPipe()
View Answer
C
Q4116: After completing its operations, the client _______
- A: disconnects
- B: pauses
- C: reboots
- D: terminates connection without notice
View Answer
A
Q4117: When ReadFile() returns FALSE, it means
- A: connection is active
- B: connection is completed
- C: client has disconnected
- D: data read is successful
View Answer
C
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
View Answer
A
Q4119: The client can connect again after
- A: pipe is reset
- B: pipe is recreated
- C: previous connection ends
- D: server reboots
View Answer
C
Q4120: Read and Write operations in client are performed after
- A: pipe creation
- B: client authentication
- C: CreateFile() call
- D: NamedPipe validation
View Answer
C