Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q4071: Connecting to a named pipe involves using _______ as the function
  • A: CreateNamedPipe()
  • B: CreateFile()
  • C: OpenNamedPipe()
  • D: ConnectToPipe()
View Answer
B

Q4072: When connecting to a remote named pipe, _______ is included in the path
  • A: the hostname
  • B: the IP address
  • C: the MAC address
  • D: the OS version
View Answer
A

Q4073: Which function is used to check if a pipe is in blocking or non-blocking mode?
  • A: GetPipeState()
  • B: GetPipeStatus()
  • C: GetNamedPipeHandleState()
  • D: GetStateInfo()
View Answer
C

Q4074: The function _______ allows setting the state attributes of a named pipe.
  • A: SetNamedPipeAttributes()
  • B: SetPipeStatus()
  • C: SetNamedPipeHandleState()
  • D: ConfigurePipeState()
View Answer
C

Q4075: Which of the following returns information about whether the pipe is message or byte oriented?
  • A: GetNamedPipeInfo()
  • B: GetNamedPipeState()
  • C: GetNamedPipeHandleState()
  • D: AnalyzePipeState()
View Answer
C

Q4076: To determine if the handle belongs to a client or server, use _______.
  • A: GetNamedPipeInfo()
  • B: CheckPipeStatus()
  • C: GetPipeOwner()
  • D: GetHandleType()
View Answer
A

Q4077: GetNamedPipeInfo() provides information on
  • A: buffer sizes and ownership
  • B: only blocking mode
  • C: security settings only
  • D: message types only
View Answer
A

Q4078: Which function can get the client session ID of a named pipe?
  • A: GetClientID()
  • B: GetPipeSessionID()
  • C: GetNamedPipeClientSessionId()
  • D: GetNamedPipeState()
View Answer
C

Q4079: The server process ID can be retrieved using
  • A: GetServerPipeInfo()
  • B: GetNamedPipeServerProcessId()
  • C: GetProcessPipeID()
  • D: GetPipeServerID()
View Answer
B

Q4080: To set pipe mode to message-oriented, you would use
  • A: SetNamedPipeAttributes()
  • B: SetNamedPipeHandleState()
  • C: ConfigureNamedPipe()
  • D: SetPipeBufferMode()
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now