Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q3221: CRITICAL_SECTIONs are usually preferred when _______.
  • A: sharing mutexes across processes
  • B: is required
  • C: minimal overhead and faster locking are needed
  • D: inter-process communication is needed
View Answer
C

Q3222: Mutexes provide _______ functionality that CRITICAL_SECTIONs lack.
  • A: recursive locking
  • B: naming and timeout
  • C: waiting for multiple objects
  • D: direct memory access
View Answer
B

Q3223: Threads that create mutexes can acquire immediate ownership, which is a _______.
  • A: convenience
  • B: performance issue
  • C: security risk
  • D: design flaw
View Answer
A

Q3224: CRITICAL_SECTIONs are suitable only for synchronization within a _______.
  • A: single process
  • B: multiple processes
  • C: multiple machines
  • D: network
View Answer
C

Q3225: The key disadvantage of mutexes compared to CRITICAL_SECTIONs is _______.
  • A: higher overhead
  • B: lack of timeout
  • C: support for inter-process sharing
  • D: slower creation time
View Answer
A

Q3226: Which Windows API function creates or opens a mutex?
  • A: CreateMutex()
  • B: ReleaseMutex()
  • C: OpenMutex()
  • D: CloseHandle()
View Answer
A

Q3227: Which Windows API function releases ownership of a mutex?
  • A: ReleaseMutex()
  • B: CreateMutex()
  • C: WaitForSingleObject()
  • D: OpenMutex()
View Answer
A

Q3228: The abbreviation "CS" stands for _______ in Windows synchronization objects.
  • A: Concurrent Section
  • B: Critical Section
  • C: Control Semaphore
  • D: Concurrent Semaphore
View Answer
B

Q3229: A semaphore is a data structure used for _______.
  • A: process synchronization
  • B: concurrency control
  • C: memory management
  • D: thread scheduling
View Answer
B

Q3230: A semaphore is in a signaled state when its count is _______.
  • A: less than 0
  • B: greater than 0
  • C: equal to 0
  • D: negative
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now