System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Chapter: 121
Q2621:
What is the role of 'pThreadHandle' in the program?
A. Points to records
B. Stores handles to created threads
C. Contains thread arguments
D. Tracks error codes
Correct Answer:
B
Chapter: 122
Q2622:
Multiprocessing and multithreading both provide multiple flows of ________.
A. execution
B. memory
C. storage
D. devices
Correct Answer:
A
Chapter: 122
Q2623:
Between multiprocessing and multithreading, ________ is considered more optimal.
A. multiprocessing
B. multithreading
C. single-threading
D. batch processing
Correct Answer:
B
Chapter: 122
Q2624:
Windows operating system supports multithreading, multiprocessing, and ________.
A. multiprocessors
B. single-core
C. distributed systems
D. real-time OS
Correct Answer:
A
Chapter: 122
Q2625:
After a certain point, the processor speed cannot be increased due to a _________.
A. bottleneck
B. cache miss
C. pipeline stall
D. thermal limit
Correct Answer:
A
Chapter: 122
Q2626:
The key to future performance improvement is ________.
A. increasing CPU clock rates
B. parallelization
C. reducing RAM
D. single-thread optimization
Correct Answer:
B
Chapter: 122
Q2627:
In parallel programming, a major task is divided into ________.
A. subtasks
B. threads
C. processes
D. data chunks
Correct Answer:
A
Chapter: 122
Q2628:
Subtasks in parallel programs are handled by _________.
A. worker threads
B. master threads
C. single thread
D. main process
Correct Answer:
A
Chapter: 122
Q2629:
Worker threads perform their subtasks ________, without interaction among them.
A. independently
B. sequentially
C. interactively
D. mutually exclusive
Correct Answer:
A
Chapter: 122
Q2630:
The master program merges results from subtasks after they have ________.
A. started
B. completed
C. interrupted
D. paused
Correct Answer:
B
Chapter: 122
Q2631:
In parallel programs, only the master worker is synchronized with ________.
A. every worker thread
B. the CPU
C. the memory
D. the file system
Correct Answer:
A
Chapter: 122
Q2632:
The most optimal situation in parallel programming is when every worker runs on a ________.
A. separate thread on a single processor
B. separate thread on a separate processor
C. single thread on multiple processors
D. master thread only
Correct Answer:
B
Chapter: 122
Q2633:
Program performance scales automatically based on the number of ________.
A. threads
B. processors
C. users
D. IO devices
Correct Answer:
B
Chapter: 122
Q2634:
In Windows, the assignment of worker subtasks to processors is handled by the ________.
A. program itself
B. Windows kernel
C. CPU scheduler
D. user
Correct Answer:
B
Chapter: 122
Q2635:
Parallel programs produce the same output as their ________ counterparts.
A. serialized programs
B. distributed programs
C. single-threaded programs
D. hardware threads
Correct Answer:
A
Chapter: 122
Q2636:
Serializing a program makes it easier to ________.
A. run faster
B. debug
C. parallelize
D. deploy
Correct Answer:
B
Chapter: 122
Q2637:
The maximum performance improvement in parallelism is limited by thread management overhead and ________.
A. hardware faults
B. computations that cannot be parallelized
C. memory size
D. network latency
Correct Answer:
B
Chapter: 122
Q2638:
The tasks performed by worker threads require ________ exclusion in the given parallelism model.
A. mutual
B. no
C. forced
D. delayed
Correct Answer:
B
Chapter: 122
Q2639:
Parallel programs with no mutual exclusion between worker threads avoid ________ conditions.
A. deadlock
B. race
C. bottleneck
D. cache miss
Correct Answer:
B
Chapter: 122
Q2640:
Multiprocessors and multicore systems require ________ programming techniques for better performance.
A. serial
B. parallel
C. procedural
D. functional
Correct Answer:
B