System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Chapter: 166
Q3661:
Each thread typically reserves about how much memory space upon creation?
A. 512KB
B. 2MB
C. 1MB
D. 256KB
Correct Answer:
C
Chapter: 166
Q3662:
Excessive thread creation can result in
A. less context switching
B. memory optimization
C. performance issues
D. improved synchronization
Correct Answer:
C
Chapter: 166
Q3663:
Page faults during context-switching are caused due to
A. parallel processing
B. high memory access
C. thread overload
D. single threading
Correct Answer:
C
Chapter: 166
Q3664:
One of the drawbacks of reducing threads is
A. loss of memory
B. slow performance
C. better I/O handling
D. loss of parallelism and synchronization
Correct Answer:
D
Chapter: 166
Q3665:
Which optimization uses callback functions to reduce thread contention?
A. Thread pools
B. Mutex
C. Semaphores
D. Threads
Correct Answer:
A
Chapter: 166
Q3666:
Which of the following helps manage limited threads effectively?
A. Semaphores
B. Deadlocks
C. Page faults
D. Thread starvation
Correct Answer:
A
Chapter: 166
Q3667:
What type of I/O helps reduce thread contention?
A. Synchronous
B. I/O bound
C. Asynchronous
D. Delayed
Correct Answer:
C
Chapter: 166
Q3668:
Which Windows-based feature allows scalable thread management?
A. Critical sections
B. Thread counters
C. I/O completion ports
D. Busy waiting
Correct Answer:
C
Chapter: 166
Q3669:
OpenMP and Cilk++ are examples of
A. thread types
B. thread priorities
C. third-party frameworks
D. thread locks
Correct Answer:
C
Chapter: 166
Q3670:
Using APC (Asynchronous Procedure Calls) can help in
A. thread delay
B. thread synchronization
C. reducing I/O
D. thread creation overhead
Correct Answer:
B
Chapter: 166
Q3671:
Thread pools operate based on
A. manual locking
B. condition variables
C. callback mechanisms
D. page faults
Correct Answer:
C
Chapter: 166
Q3672:
Semaphore throttling is used to
A. control thread starvation
B. manage memory
C. use callback functions
D. limit excessive threading
Correct Answer:
D
Chapter: 166
Q3673:
Reserving memory for each thread leads to
A. performance boost
B. thread delay
C. memory pile up
D. increased synchronization
Correct Answer:
C
Chapter: 166
Q3674:
Minimizing threads completely can lead to
A. thread reuse
B. better synchronization
C. loss of concurrency
D. system crash
Correct Answer:
C
Chapter: 166
Q3675:
Thread context switching is
A. lightweight
B. inexpensive
C. time-consuming
D. memory-free
Correct Answer:
C
Chapter: 166
Q3676:
Context-switching between threads can cause _______.
A. synchronization
B. boost
C. page faults
D. thread reuse
Correct Answer:
C
Chapter: 166
Q3677:
Using third-party frameworks like OpenMP helps in
A. reducing synchronization
B. increasing threading
C. thread contention optimization
D. minimizing memory use
Correct Answer:
C
Chapter: 166
Q3678:
Using asynchronous I/O operations can
A. limit thread count
B. increase contention
C. cause page faults
D. increase load
Correct Answer:
B
Chapter: 166
Q3679:
Using too many threads can eventually lead to
A. system optimization
B. thread memory cleanup
C. contention and performance issues
D. more synchronization
Correct Answer:
C
Chapter: 166
Q3680:
Third-party frameworks like _______ are used to reduce thread contention.
A. Mutex and Semaphore
B. OpenMP and cilk++
C. Java Threads and Tasks
D. C++ Threads and Events
Correct Answer:
B