System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q3961: Reading from an empty anonymous pipe
- A: read operation blocks
- B: immediately returns zero
- C: bytes lost
- D: raises an error
View Answer
A
Q3962: Write operation to an anonymous pipe
- A: will block if the buffer is full
- B: will always succeed
- C: is non-blocking
- D: is asynchronous
View Answer
A
Q3963: Anonymous pipes work
- A: one way
- B: fully duplex
- C: two way
- D: network wide
View Answer
A
Q3964: For two-way communication using anonymous pipes
- A: you need two pipes
- B: one pipe is sufficient
- C: you need shared memory
- D: you need named pipes
View Answer
A
Q3965: ReadFile() function in anonymous pipes
- A: can read as many bytes as in the pipe
- B: or specified number
- C: only one byte
- D: only up to 256 bytes
View Answer
A
Q3966: Anonymous pipes are useful for
- A: communication between parent and child processes
- B: network communication
- C: client-server communication
- D: device drivers
View Answer
A
Q3967: CreatePipe() returns
- A: BOOL
- B: integer
- C: character
- D: string
View Answer
A
Q3968: Anonymous pipes
- A: are suitable for simple IPC
- B: are suitable for complex network communication
- C: allow multiple open handles
- D: are message oriented
View Answer
A
Q3969: If a pipe buffer is full,
- A: WriteFile() blocks
- B: WriteFile() discards data
- C: WriteFile() throws error
- D: WriteFile() completes immediately
View Answer
A
Q3970: In I/O redirection using anonymous pipes, who creates the child processes?
- A: Operating system
- B: Parent process
- C: Command line interface
- D: Kernel
View Answer
B