Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q4051: Closing the last handle to a named pipe instance will
  • A: delete all handles
  • B: close the server
  • C: delete the pipe instance
  • D: create a new pipe
View Answer
C

Q4052: The first call to CreateNamedPipe() creates
  • A: a file
  • B: a server
  • C: thread pool
  • D: a pipe and instance
View Answer
D

Q4053: The parameter used to set security in CreateNamedPipe() is
  • A: nInBufferSize
  • B: nDefaultTimeOut
  • C: dwOpenMode
  • D: lpSecurityAttributes
View Answer
D

Q4054: The default timeout in CreateNamedPipe() is set using
  • A: pipe name
  • B: lpName
  • C: nDefaultTimeOut
  • D: dwPipeMode
View Answer
C

Q4055: Pipe names must follow a specific format starting with
  • A: /pipe/\
  • B: \\.\pipe\
  • C: pipe:\\
  • D: \pipe\\
View Answer
B

Q4056: Named pipes can be created with a name up to
  • A: 128 characters
  • B: 256 characters
  • C: 512 characters
  • D: 64 characters
View Answer
B

Q4057: Which function is used by the client to connect to a named pipe?
  • A: OpenPipe()
  • B: CreatePipe()
  • C: CreateFile()
  • D: OpenFile()
View Answer
C

Q4058: In most scenarios, the client and server of a named pipe are
  • A: located on different machines
  • B: located on the same machine
  • C: always connected via the internet
  • D: separate physical devices
View Answer
B

Q4059: To connect to a pipe on a remote server, the format is
  • A: \\.\pipe\[path]pipename
  • B: \\pipe\server\name
  • C: \\servername\pipe\pipename
  • D: \\remote\pipe\[name]
View Answer
C

Q4060: To connect to a pipe on a local server, the server name used in the path is
  • A: localhost
  • B: (current IP)
  • C: .
  • D: 127.0.0.1
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now