System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q3771: If the program is run with fewer than 3 arguments, it _______.
- A: Displays usage instructions
- B: Starts with default values
- C: Exits silently
- D: Starts with one thread
View Answer
A
Q3772: The loop in Worker runs while tasksComplete is _______ tasksToComplete.
- A: less than
- B: greater than
- C: equal to
- D: not equal to
View Answer
A
Q3773: traceFlag is set to TRUE if the _______ argument is provided.
- A: Fourth
- B: Fifth
- C: Second
- D: Third
View Answer
B
Q3774: Using thread pools helps avoid explicit thread _______.
- A: management
- B: creation
- C: destroying
- D: communication
View Answer
A
Q3775: The type THARG contains a slim reader-writer lock called _______.
- A: slimRWL
- B: srwLock
- C: srwlock
- D: SLWlock
View Answer
A
Q3776: The macro CACHE_LINE_SIZE ensures memory allocation aligns with the size of a _______.
- A: cache line
- B: cache block
- C: page
- D: thread stack
View Answer
A
Q3777: In the thread pool framework, the work object is of type _______.
- A: PTP_WORK
- B: PTP_THREAD
- C: PVOID
- D: PTP_CALLBACK
View Answer
A
Q3778: Worker threads report progress in a(n) _______ array.
- A: unshared
- B: shared
- C: global
- D: local
View Answer
A
Q3779: The main function uses _______ to parse command line arguments into integers.
- A: _ttoi
- B: atoi
- C: strtol
- D: scanf
View Answer
A
Q3780: The traceFlag variable is of type _______.
- A: BOOL
- B: int
- C: char
- D: float
View Answer
A