System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q4031: The server creates multiple pipe instances to support
- A: multiple servers
- B: multiple threads
- C: multiple clients
- D: multiple ports
View Answer
C
Q4032: CreateNamedPipe() creates ______ and returns a handle.
- A: a new file
- B: a thread
- C: a pipe instance
- D: a signal
View Answer
C
Q4033: Each client is supported by a distinct _______ created by the server.
- A: thread name
- B: thread and pipe instance
- C: buffer pool
- D: message box
View Answer
B
Q4034: The maximum number of ______ is specified in the CreateNamedPipe() function.
- A: messages
- B: machines
- C: connections
- D: instances
View Answer
D
Q4035: What function is used to create a named pipe?
- A: CreatePipe()
- B: CreateNamedPipe()
- C: InitPipe()
- D: OpenNamedPipe()
View Answer
B
Q4036: The handle returned by CreateNamedPipe() refers to
- A: a remote server
- B: the named pipe instance
- C: a thread ID
- D: a memory block
View Answer
B
Q4037: What is the format of the pipe name in CreateNamedPipe()?
- A: \\pipe\name
- B: \\.\pipe\pipeName
- C: \\namedpipe\\name
- D: \\host\pipe\name
View Answer
B
Q4038: In the pipe name \\.\pipe\pipeName, the period (.) refers to
- A: local machine
- B: default pipe
- C: case insensitivity
- D: root directory
View Answer
A
Q4039: Creating a named pipe on a remote machine using CreateNamedPipe() is
- A: possible
- B: limited
- C: not allowed
- D: supported by default
View Answer
C
Q4040: The name of a pipe can contain any character except
- A: backslash
- B: forward slash
- C: period
- D: underscore
View Answer
A