Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q3401: Semaphores are used to control access to a resource by ________.
  • A: One thread
  • B: Multiple threads
  • C: Only the main thread
  • D: Only processes
View Answer
B

Q3402: Critical Section objects are best suited for synchronizing threads within the ________.
  • A: Same process
  • B: Different processes
  • C: Remote computers
  • D: Multiple users
View Answer
A

Q3403: A mutex can be owned by a thread and can also be ________.
  • A: Released by any thread
  • B: Owned by multiple threads
  • C: Owned by processes
  • D: Released by the OS
View Answer
A

Q3404: Windows synchronization objects are important in programs that use ________.
  • A: Shared resources
  • B: Only read-only data
  • C: Single-threaded operations
  • D: Stateless communication
View Answer
A

Q3405: Threads in Windows that share data must use synchronization objects to prevent ________.
  • A: Data corruption
  • B: Thread creation
  • C: Thread destruction
  • D: Deadlocks (but choose the best answer for corruption)
View Answer
A

Q3406: Events in Windows synchronization can be either manual-reset or ________-reset.
  • A: Auto
  • B: Multi
  • C: Single
  • D: Resettable
View Answer
A

Q3407: The synchronization object used to restrict access to a resource to a fixed number of threads is called a ________.
  • A: Mutex
  • B: Event
  • C: Semaphore
  • D: Critical Section
View Answer
C

Q3408: Fill in the blank: A ________ synchronization object is lighter weight than a mutex but only works within a single process.
  • A: Critical Section
  • B: Mutex
  • C: Event
  • D: Semaphore
View Answer
A

Q3409: Fill in the blank: To signal an event in Windows, the function ________ is used.
  • A: SetEvent
  • B: WaitForSingleObject
  • C: CreateMutex
  • D: ReleaseMutex
View Answer
A

Q3410: Fill in the blank: In Windows, a ________ can be used to ensure mutual exclusion among threads across multiple processes.
  • A: Mutex
  • B: Critical Section
  • C: Event
  • D: Semaphore
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now