System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Chapter: 159
Q3521:
Despite performance cost, locking is important because of ______.
A. thread count
B. priority management
C. logical significance
D. CPU cycles
Correct Answer:
C
Chapter: 159
Q3522:
Synchronization with Interlocked functions is ______ compared to using Mutexes.
A. faster
B. slower
C. similar
D. more complex
Correct Answer:
A
Chapter: 159
Q3523:
Which version was found to be the most expensive in terms of performance cost?
A. Critical Section
B. Mutex
C. Interlocked
D. No Sync
Correct Answer:
B
Chapter: 159
Q3524:
Real time, user time, and system time are metrics used to evaluate ______.
A. thread priority
B. coding errors
C. synchronization performance
D. memory allocation
Correct Answer:
C
Chapter: 159
Q3525:
CS performance in older versions of Windows was ______.
A. optimized
B. scalable
C. unpredictable
D. not scalable
Correct Answer:
D
Chapter: 159
Q3526:
Programs were analyzed using a tool that measures ______.
A. RAM usage
B. thread size
C. real, user, and system time
D. lock frequency
Correct Answer:
C
Chapter: 159
Q3527:
CS implementation is more scalable in ______ versions of Windows.
A. older
B. beta
C. unreleased
D. recent
Correct Answer:
D
Chapter: 159
Q3528:
The term NS stands for ______.
A. No Switching
B. Non-Scalable
C. No Synchronization
D. New Stack
Correct Answer:
C
Chapter: 159
Q3529:
IN refers to ______ in concurrency control.
A. Input Null
B. Interlocked Functions
C. Internal Name
D. Initial Node
Correct Answer:
B
Chapter: 159
Q3530:
The performance gap between NS and IN is ______.
A. significant
B. very large
C. almost none
D. huge
Correct Answer:
C
Chapter: 159
Q3531:
______ can degrade drastically with increasing processors.
A. Interlocked
B. No Sync
C. Mutexes
D. CS
Correct Answer:
C
Chapter: 159
Q3532:
CS stands for ______.
A. Critical Set
B. Critical Section
C. Control State
D. Core Sync
Correct Answer:
B
Chapter: 159
Q3533:
Analyzing system time helps to evaluate ______.
A. thread count
B. memory allocation
C. performance
D. scheduling algorithm
Correct Answer:
C
Chapter: 159
Q3534:
Performance testing shows synchronization trade-offs in ______.
A. safety vs. speed
B. thread count vs. memory
C. CPU vs. GPU
D. locking vs. non-locking
Correct Answer:
D
Chapter: 160
Q3535:
What problem arises when multiple variables share the same cache line?
A. cache overflow
B. false sharing contention
C. thread starvation
D. data race
Correct Answer:
B
Chapter: 160
Q3536:
False sharing contention occurs when ______.
A. threads are idle
B. locks are skipped
C. variables share a cache line
D. processors are overloaded
Correct Answer:
C
Chapter: 160
Q3537:
When a cache line is locked due to a thread accessing one element, ______.
A. only that element is locked
B. the system crashes
C. the whole line is locked
D. the memory is erased
Correct Answer:
C
Chapter: 160
Q3538:
Accessing a single element on a cache line causes ______ to be locked.
A. just the memory cell
B. only one variable
C. complete line
D. entire system
Correct Answer:
C
Chapter: 160
Q3539:
To avoid false sharing, variables should be ______.
A. shared between threads
B. aligned on the same line
C. grouped together
D. placed on separate cache lines
Correct Answer:
D
Chapter: 160
Q3540:
The cost of aligning variables to separate cache lines is primarily in ______.
A. CPU time
B. thread switching
C. memory usage
D. power consumption
Correct Answer:
C