Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q3151: Mutexes can be named and have _______.
  • A: values
  • B: flags
  • C: handles
  • D: properties
View Answer
C

Q3152: The parameter lpMutexName in CreateMutex() refers to the _______.
  • A: thread name
  • B: mutex name
  • C: file name
  • D: process name
View Answer
B

Q3153: To open an existing named mutex, we use _______.
  • A: OpenMutex()
  • B: UnlockMutex()
  • C: CallMutex()
  • D: WaitForMutex()
View Answer
A

Q3154: A thread can synchronize with other threads across processes using _______.
  • A: CRITICAL_SECTION
  • B: OpenMutex()
  • C: CloseHandle()
  • D: SetMutex()
View Answer
B

Q3155: If a mutex is abandoned by a terminating thread, it becomes _______.
  • A: released
  • B: blocked
  • C: signaled
  • D: terminated
View Answer
C

Q3156: ReleaseMutex() fails if _______.
  • A: the mutex is not owned by the thread
  • B: the mutex is released already
  • C: the thread is terminated
  • D: the mutex is recursive
View Answer
A

Q3157: A mutex can be acquired using _______.
  • A: WaitOne()
  • B: WaitForMultipleObjects()
  • C: SleepThread()
  • D: CloseHandle()
View Answer
B

Q3158: Mutexes are especially useful for synchronizing threads in _______.
  • A: loops
  • B: memory maps
  • C: files
  • D: procedures
View Answer
B

Q3159: A thread should release a mutex as soon as possible to avoid _______.
  • A: race conditions
  • B: resource starvation
  • C: thread priority
  • D: deadlocks
View Answer
D

Q3160: Ownership of mutex is released using _______.
  • A: WaitForMutex()
  • B: CloseHandle()
  • C: ReleaseMutex()
  • D: OpenMutex()
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now