Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q4021: In a named pipe system, each thread on the server handles
  • A: a batch of clients
  • B: a single client
  • C: multiple pipes
  • D: pipe creation
View Answer
B

Q4022: The client/server relationship in named pipes relies on
  • A: shared memory
  • B: socket connection
  • C: dedicated thread and pipe instance
  • D: common buffers
View Answer
D

Q4023: CreateNamedPipe() is called by
  • A: clients
  • B: threads
  • C: servers
  • D: files
View Answer
C

Q4024: In named pipe communication, the server creates _______ for each pipe instance.
  • A: different clients
  • B: different handles
  • C: different threads
  • D: same threads
View Answer
C

Q4025: Each client communicates with the server using
  • A: a common thread
  • B: dedicated instance and thread
  • C: multiple semaphores
  • D: anonymous pipes
View Answer
B

Q4026: To open a named pipe, the client must use
  • A: CreateFile()
  • B: CreatePipe()
  • C: OpenThread()
  • D: InitializePipe()
View Answer
A

Q4027: The function that defines how many clients can simultaneously connect to a server is
  • A: CreateNamedPipe()
  • B: InitPipe()
  • C: AssignThread()
  • D: ClientInstance()
View Answer
A

Q4028: A named pipe instance is identified using a
  • A: handle
  • B: process ID
  • C: thread name
  • D: server ID
View Answer
A

Q4029: The named pipe model works on which of the following patterns?
  • A: publish/subscribe
  • B: producer/consumer
  • C: client/server
  • D: event-driven
View Answer
C

Q4030: In named pipes, the server process is responsible for
  • A: creating handles only
  • B: reading only
  • C: creating pipes and assigning threads
  • D: monitoring memory
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now