System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q3951: Pipes used in IPC can be described as
- A: file-like objects
- B: device drivers
- C: network cards
- D: memory buffers
View Answer
A
Q3952: Named pipes support which type of communication?
- A: full duplex
- B: half duplex
- C: serial
- D: parallel
View Answer
A
Q3953: To create IPC, the mechanism that allows communication is called
- A: Inter-process communication
- B: Inter-thread communication
- C: Network communication
- D: Shared memory
View Answer
A
Q3954: Anonymous pipes allow
- A: one-way communication
- B: two-way communication
- C: full duplex communication
- D: full duplex and message oriented
View Answer
A
Q3955: Each anonymous pipe has
- A: two handles: read and write
- B: one handle: read only
- C: one handle: write only
- D: multiple handles for read and write
View Answer
A
Q3956: The CreatePipe() function is used to
- A: create anonymous pipes
- B: create named pipes
- C: create threads
- D: create processes
View Answer
A
Q3957: In CreatePipe(), the parameter cbPipe
- A: specifies the suggested pipe size
- B: sets the actual pipe size
- C: indicates the pipe type
- D: defines the buffer mode
View Answer
A
Q3958: By default, the cbPipe value in CreatePipe() is
- A: set to 0
- B: set to 1024
- C: set to 1
- D: set to maximum size
View Answer
A
Q3959: In parent-child process communication using anonymous pipes, the read handle (phRead) belongs to
- A: the child process
- B: the parent process
- C: both parent and child
- D: process scheduler
View Answer
A
Q3960: In anonymous pipes, the write handle (phWrite) belongs to
- A: the parent process
- B: the child process
- C: both processes
- D: none
View Answer
A