Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q3271: CriticalSection is used to avoid _______ during the wait calls.
  • A: context switching
  • B: resource allocation
  • C: thread blocking
  • D: thread switching
View Answer
D

Q3272: Calling wait twice on a semaphore is not atomic because the wait calls are _______ functions.
  • A: separate
  • B: combined
  • C: synchronized
  • D: blocking
View Answer
A

Q3273: The limitation of semaphores arises because they do not support _______ operations on multiple wait calls.
  • A: atomic
  • B: parallel
  • C: synchronized
  • D: serial
View Answer
A

Q3274: WaitForMultipleObjects() with multiple references to the same semaphore is not a valid solution because it _______.
  • A: works perfectly
  • B: fails due to duplicates
  • C: succeeds always
  • D: ignores duplicates
View Answer
B

Q3275: In the semaphore limitation scenario, thread switching between wait calls can lead to _______.
  • A: deadlock
  • B: race condition
  • C: memory leak
  • D: successful execution
View Answer
A

Q3276: To prevent deadlock-like situations caused by multiple wait calls, a _______ can be used.
  • A: CriticalSection
  • B: Mutex
  • C: Semaphore
  • D: Lock
View Answer
A

Q3277: The primary issue with calling wait multiple times on a semaphore is the lack of _______ between calls.
  • A: atomicity
  • B: thread safety
  • C: parallelism
  • D: synchronization
View Answer
A

Q3278: Deadlocks caused by semaphore wait switching can be prevented by making wait calls _______.
  • A: independent
  • B: atomic
  • C: concurrent
  • D: asynchronous
View Answer
B

Q3279: WaitForMultipleObjects() cannot be used with multiple identical handles because it _______.
  • A: does not detect duplicates
  • B: fails
  • C: ignores duplicates
  • D: locks handles
View Answer
B

Q3280: Semaphore waits that are not atomic may cause _______ between threads during execution.
  • A: context switching
  • B: parallel execution
  • C: atomic execution
  • D: thread synchronization
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now