System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Chapter: 175
Q3861:
Using synchronization constructs frequently in parallel programming may
A. degrade performance
B. improve performance
C. have no effect
D. break the program
Correct Answer:
A
Chapter: 175
Q3862:
Increasing computational cores indefinitely
A. Does not guarantee better performance
B. Always improves performance
C. Decreases performance
D. Has no effect
Correct Answer:
A
Chapter: 175
Q3863:
Parallel sort and merge
A. Are more efficient than serial versions
B. Are less efficient
C. Do not work
D. Are deprecated
Correct Answer:
A
Chapter: 175
Q3864:
Fine grain parallelism is best exploited in
A. Divide and conquer applications
B. Sequential loops
C. Single-threaded programs
D. Non-recursive functions
Correct Answer:
A
Chapter: 175
Q3865:
Examples of computational tasks suitable for parallelism include
A. matrix multiplication and Fourier transformation
B. database queries and UI rendering
C. file handling and logging
D. static file serving
Correct Answer:
A
Chapter: 175
Q3866:
Games and simulations can be decomposed into
A. several parallel components
B. single-threaded processes
C. only sequential tasks
D. exclusive locking
Correct Answer:
A
Chapter: 175
Q3867:
Parallelism is increasingly important due to
A. the bottleneck in increasing processor cores
B. the decrease in memory sizes
C. the rise of disk speeds
D. the reduction in screen resolution
Correct Answer:
A
Chapter: 175
Q3868:
Most computationally intensive applications that do not use parallelism
A. fail to use the full hardware potential
B. perform better
C. are more secure
D. consume less power
Correct Answer:
A
Chapter: 175
Q3869:
Learning parallel programming skills is necessary to
A. use the potential of current hardware
B. skip synchronization
C. handle errors easily
D. write GUI applications
Correct Answer:
A
Chapter: 175
Q3870:
The cost of parallel programming includes
A. using synchronization and concurrency control
B. increased memory usage
C. lower CPU temperature
D. less code complexity
Correct Answer:
A
Chapter: 175
Q3871:
Multi-core processors help improve performance by
A. executing multiple instructions simultaneously
B. running a single thread faster
C. increasing clock speed
D. reducing cache size
Correct Answer:
A
Chapter: 176
Q3872:
What is the first step in writing a parallel program?
A. Identify parallel components
B. Debug the program
C. Optimize code
D. Write sequential code
Correct Answer:
A
Chapter: 176
Q3873:
In parallel programming, after identifying parallel components, you must implement them with
A. parallel execution
B. single-thread execution
C. serial processing
D. error handling
Correct Answer:
A
Chapter: 176
Q3874:
Which synchronization constraint is commonly used in parallel programming?
A. Mutual exclusion
B. Mutual inclusion
C. Mutual division
D. Mutual exclusion and inclusion
Correct Answer:
A
Chapter: 176
Q3875:
The DIY approach in parallel programming means
A. Thread management and synchronization are done by the programmer
B. Thread management is done by OS
C. Thread management is automatic
D. Thread management is handled by hardware
Correct Answer:
A
Chapter: 176
Q3876:
The DIY approach is more suitable for
A. small programs with simple parallel structures
B. large programs with complex parallelism
C. distributed systems
D. GUI applications
Correct Answer:
A
Chapter: 176
Q3877:
One downside of DIY parallel programming is
A. that it can become complex and error-prone when using recursion
B. It is always faster than thread pools
C. It does not require synchronization
D. It is recommended for all program sizes
Correct Answer:
A
Chapter: 176
Q3878:
Thread pool APIs are available starting from which Windows version?
A. NT6 and above
B. Windows XP
C. Windows 95
D. NT4
Correct Answer:
A
Chapter: 176
Q3879:
Using a parallelism framework in programming
A. extends the programming language to express parallelism
B. makes programming sequential
C. removes the need for synchronization
D. limits multi-threading
Correct Answer:
A
Chapter: 176
Q3880:
Which method is the most widely accepted approach for implementing parallelism?
A. Using parallelism frameworks
B. DIY approach
C. Manual thread scheduling
D. Thread pools
Correct Answer:
C