System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q3881: The DIY approach requires the programmer to manage
- A: threads and synchronization
- B: only thread creation
- C: only synchronization
- D: neither thread nor synchronization
View Answer
A
Q3882: Thread pools are generally
- A: available in modern Windows systems
- B: only on Linux
- C: not available in Windows
- D: only on MacOS
View Answer
A
Q3883: Parallelism frameworks
- A: help express parallelism more easily
- B: are used only in embedded systems
- C: require manual synchronization
- D: remove multi-threading support
View Answer
A
Q3884: Recursive functions in DIY parallel programming
- A: are complex and error prone
- B: easy and straightforward
- C: not recommended
- D: never used
View Answer
A
Q3885: Windows thread pool APIs
- A: help enhance performance
- B: are deprecated
- C: only support single thread
- D: are slow compared to DIY
View Answer
A
Q3886: What does loop parallelism allow in parallel programming?
- A: Every loop iteration executes sequentially
- B: Every loop iteration executes concurrently
- C: Only first loop iteration executes
- D: Loop iterations execute conditionally
View Answer
B
Q3887: Fork-Join parallelism involves
- A: function calls running independently and later joining
- B: control flow merging into one single flow
- C: loops executing sequentially
- D: thread execution without synchronization
View Answer
A
Q3888: Which of the following languages is NOT typically supported by parallelism frameworks?
- A: Python
- B: Java
- C: C++
- D: Fortran
View Answer
A
Q3889: Results reduction in parallelism frameworks means
- A: combining results from parallel tasks
- B: introducing synchronization delays
- C: avoiding parallel execution
- D: serializing loops
View Answer
A
Q3890: What is the purpose of serializing parallel code for debugging?
- A: To ensure outcome remains unchanged
- B: To slow down program
- C: To increase parallelism
- D: To remove synchronization
View Answer
A