System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q4041: The maximum length of a pipe name can be
- A: up to 128 characters
- B: up to 512 characters
- C: up to 256 characters
- D: up to 64 characters
View Answer
C
Q4042: Pipe names used in CreateNamedPipe() are
- A: case sensitive
- B: case insensitive
- C: always uppercase
- D: always lowercase
View Answer
B
Q4043: The parameter dwOpenMode defines
- A: pipe name
- B: thread access
- C: open mode
- D: pipe direction
View Answer
C
Q4044: Which of the following is a valid value for dwOpenMode?
- A: PIPE_READ
- B: PIPE_ACCESS_DUPLEX
- C: PIPE_WRITE_ONLY
- D: PIPE_CREATE
View Answer
B
Q4045: PIPE_ACCESS_DUPLEX allows
- A: reading only
- B: writing only
- C: both reading and writing
- D: scheduling threads
View Answer
C
Q4046: Which parameter decides if the pipe is message or byte oriented?
- A: dwOpenMode
- B: dwPipeMode
- C: nMaxInstance
- D: nDefaultTimeOut
View Answer
B
Q4047: nMaxInstance specifies
- A: the length of the pipe
- B: the buffer size
- C: the timeout period
- D: the number of pipe instances
View Answer
D
Q4048: Which of the following is defined by nOutBufferSize and nInBufferSize?
- A: buffer length in characters
- B: buffer length in bits
- C: buffer length in bytes
- D: timeout duration
View Answer
C
Q4049: What does nDefaultTimeOut parameter represent?
- A: default memory allocation
- B: thread delay
- C: time before pipe disconnects
- D: default timeout period
View Answer
D
Q4050: lpSecurityAttributes are used for
- A: defining permissions
- B: assigning buffers
- C: defining pipe name
- D: defining read/write mode
View Answer
A