System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Chapter: 176
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
Correct Answer:
A
Chapter: 176
Q3882:
Thread pools are generally
A. available in modern Windows systems
B. only on Linux
C. not available in Windows
D. only on MacOS
Correct Answer:
A
Chapter: 176
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
Correct Answer:
A
Chapter: 176
Q3884:
Recursive functions in DIY parallel programming
A. are complex and error prone
B. easy and straightforward
C. not recommended
D. never used
Correct Answer:
A
Chapter: 176
Q3885:
Windows thread pool APIs
A. help enhance performance
B. are deprecated
C. only support single thread
D. are slow compared to DIY
Correct Answer:
A
Chapter: 177
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
Correct Answer:
B
Chapter: 177
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
Correct Answer:
A
Chapter: 177
Q3888:
Which of the following languages is NOT typically supported by parallelism frameworks?
A. Python
B. Java
C. C++
D. Fortran
Correct Answer:
A
Chapter: 177
Q3889:
Results reduction in parallelism frameworks means
A. combining results from parallel tasks
B. introducing synchronization delays
C. avoiding parallel execution
D. serializing loops
Correct Answer:
A
Chapter: 177
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
Correct Answer:
A
Chapter: 177
Q3891:
Race detection tools in parallelism frameworks
A. help detect data conflicts during parallel execution
B. automatically fix bugs
C. create new threads
D. convert parallel to sequential code
Correct Answer:
A
Chapter: 177
Q3892:
OpenMP is an example of
A. a portable, scalable, open-source parallelism framework
B. a proprietary software
C. a debugging tool
D. a single-core processor
Correct Answer:
B
Chapter: 177
Q3893:
Intel Thread Building Blocks (TBB) is mainly a
A. performance library with APIs to add parallelism
B. a compiler
C. a hardware component
D. an operating system
Correct Answer:
A
Chapter: 177
Q3894:
Cilk++ extends ordinary serial programming to
A. support parallel programming
B. use only C language
C. support only Java
D. replace multithreading
Correct Answer:
A
Chapter: 177
Q3895:
Which framework supports shared-memory parallel programming?
A. OpenMP
B. Intel TBB
C. Cilk++
D. None of the above
Correct Answer:
A
Chapter: 177
Q3896:
Loop level parallelism is useful in applications like
A. matrix multiplication
B. networking protocols
C. user interface design
D. file compression
Correct Answer:
A
Chapter: 177
Q3897:
Fork-Join parallelism control flow resembles
A. the shape of a fork dividing and joining flows
B. a straight line
C. a circle
D. random execution
Correct Answer:
B
Chapter: 177
Q3898:
Parallelism frameworks provide
A. compiler directives and runtime libraries
B. only compilers
C. only hardware tools
D. only debuggers
Correct Answer:
A
Chapter: 177
Q3899:
OpenMP documentation is available at
A. https://www.openmp.org/
B. https://intel.com
C. https://cilk.mit.edu/
D. https://parallel.org/
Correct Answer:
A
Chapter: 177
Q3900:
Intel TBB APIs are available from
A. https://www.intel.com/content/www/us/en/developer/tools/oneapi/onetbb.html#gs.rodjo
B. https://openmp.org
C. https://github.com/intel/tbb
D. https://cilk.mit.edu/
Correct Answer:
A