Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q4091: Which function is used to establish a connection between client and server on a named pipe?
  • A: OpenNamedPipe()
  • B: ConnectNamedPipe()
  • C: CreateNamedPipe()
  • D: LinkNamedPipe()
View Answer
B

Q4092: The ConnectNamedPipe() function requires which handle as its first parameter?
  • A: File handle
  • B: Socket handle
  • C: Named pipe handle
  • D: Thread handle
View Answer
C

Q4093: What happens if lpOverlapped is NULL in ConnectNamedPipe()?
  • A: Asynchronous connection
  • B: Synchronous connection
  • C: Immediate return on connection
  • D: Returns FALSE
View Answer
C

Q4094: Which function is used to disconnect a connected named pipe?
  • A: CloseHandle()
  • B: DisconnectNamedPipe()
  • C: TerminatePipe()
  • D: ReleasePipe()
View Answer
B

Q4095: ConnectNamedPipe() will return FALSE with which error if pipe is already connected?
  • A: ERROR_PIPE_BUSY
  • B: ERROR_PIPE_CONNECTED
  • C: ERROR_ACCESS_DENIED
  • D: ERROR_PIPE_FULL
View Answer
B

Q4096: After a client is connected, which function allows data to be read?
  • A: ReadPipe()
  • B: ReadFile()
  • C: GetData()
  • D: ReadMessage()
View Answer
B

Q4097: Once connected, the server sends data using
  • A: SendFile()
  • B: WriteMessage()
  • C: WritePipe()
  • D: WriteFile()
View Answer
D

Q4098: To synchronize connections to the server, use
  • A: SyncPipe()
  • B: WaitNamedPipe()
  • C: PipeSynchronize()
  • D: HoldPipe()
View Answer
B

Q4099: The lpOverlapped parameter in ConnectNamedPipe() is used for
  • A: reading data
  • B: writing data
  • C: synchronizing asynchronous operation
  • D: closing the pipe
View Answer
C

Q4100: If ConnectNamedPipe() returns FALSE, which error indicates an already connected pipe?
  • A: ERROR_PIPE_DISCONNECTED
  • B: ERROR_PIPE_BUSY
  • C: ERROR_PIPE_CONNECTED
  • D: ERROR_PIPE_DELAY
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now