Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q3191: Using a single mutex for two lists in concurrent updates will
  • A: enhance performance
  • B: degrade performance
  • C: remove deadlock risk
  • D: improve memory usage
View Answer
B

Q3192: A method to avoid deadlock is to maintain a _______.
  • A: thread log
  • B: resource pool
  • C: mutex map
  • D: hierarchy
View Answer
D

Q3193: In multithreading, all threads should acquire and release mutexes in the same _______.
  • A: process
  • B: thread order
  • C: hierarchy
  • D: order
View Answer
D

Q3194: The function WaitForMultipleObjects() allows
  • A: one mutex to be acquired at a time
  • B: both or none of the mutexes to be acquired
  • C: all threads to pause
  • D: thread creation
View Answer
B

Q3195: WaitForMultipleObjects() with fWaitAll flag helps in
  • A: avoiding memory leaks
  • B: avoiding deadlocks
  • C: managing priority
  • D: increasing execution time
View Answer
B

Q3196: This technique cannot be used with CRITICAL_SECTION.
  • A: Single mutex locking
  • B: Recursive locking
  • C: WaitForMultipleObjects with fWaitAll
  • D: Nested locking
View Answer
C

Q3197: Two lists maintained by different threads must be synchronized when they
  • A: share memory
  • B: contain duplicate values
  • C: affect one another's operation
  • D: are static
View Answer
C

Q3198: Concurrency objects help in
  • A: managing memory
  • B: increasing CPU usage
  • C: controlling access to resources
  • D: building GUIs
View Answer
C

Q3199: All threads should acquire mutexes in _______ to avoid deadlocks.
  • A: random order
  • B: reverse order
  • C: same order
  • D: none of the above
View Answer
C

Q3200: If a thread uses multiple mutexes, using _______ can help avoid deadlocks.
  • A: single-threaded model
  • B: mutex nesting
  • C: same acquisition order
  • D: different thread pools
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now