Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q3611: The spin count of SRW locks can be adjusted using:
  • A: SetSRWSpinCount()
  • B: SetCriticalSectionSpinCount()
  • C: Cannot be adjusted
  • D: InitSRWSpinCount()
View Answer
C

Q3612: SRW locks do not require ______ after use.
  • A: thread check
  • B: pointer assignment
  • C: explicit deletion
  • D: resource pooling
View Answer
C

Q3613: SRW locks provide ______ type of calls.
  • A: blocking only
  • B: non-blocking only
  • C: asynchronous only
  • D: none of the above
View Answer
A

Q3614: Once an SRW lock is acquired in shared mode, it ______ be upgraded to exclusive mode.
  • A: can
  • B: cannot
  • C: must
  • D: becomes automatic
View Answer
B

Q3615: Exclusive mode in SRW locks permits ______.
  • A: single-threaded writing
  • B: recursive writing
  • C: thread priority queue
  • D: all read operations
View Answer
A

Q3616: Shared mode is used when ______.
  • A: only writing is required
  • B: multiple threads need to read
  • C: only one reader is needed
  • D: the system is idle
View Answer
B

Q3617: SRW locks are best used when ______.
  • A: recursion is required
  • B: memory usage should be high
  • C: synchronization overhead must be minimized
  • D: critical sections are needed
View Answer
C

Q3618: SRW locks can be used for both ______ and ______ operations.
  • A: threaded, non-threaded
  • B: read, write
  • C: read, sleep
  • D: kernel, user
View Answer
B

Q3619: SRW locks should be used when the system needs ______.
  • A: low overheads and fast synchronization
  • B: recursion and heavy locking
  • C: threaded kernel locks
  • D: spin loop operation
View Answer
A

Q3620: The SRW lock pointer is either 32-bit or ______.
  • A: 16-bit
  • B: 48-bit
  • C: 64-bit
  • D: 128-bit
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now