Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q3161: The parameter lpMutexName in CreateMutex() follows rules of _______.
  • A: Thread ID
  • B: Process name
  • C: Windows namespace
  • D: Thread handle
View Answer
C

Q3162: A thread will not be blocked if it _______.
  • A: is of high priority
  • B: is in sleep
  • C: state already owns the mutex
  • D: has multiple handles
View Answer
C

Q3163: Mutexes provide an advantage over CRITICAL_SECTION by supporting _______.
  • A: local threads
  • B: thread IDs
  • C: naming and interprocess communication
  • D: thread sleeping
View Answer
C

Q3164: Mutexes can be used to protect shared files through _______.
  • A: local memory
  • B: events
  • C: memory maps
  • D: semaphores
View Answer
C

Q3165: Releasing a mutex when not owned by the thread results in _______.
  • A: success
  • B: thread switching
  • C: failure
  • D: delay
View Answer
C

Q3166: The CreateMutex function returns a handle of type _______.
  • A: INT
  • B: BOOL
  • C: HANDLE
  • D: CHAR
View Answer
C

Q3167: To release a mutex, the correct syntax is _______.
  • A: BOOL ReleaseMutex(HANDLE hMutex)
  • B: BOOL OpenMutex(HANDLE hMutex)
  • C: BOOL ResetMutex(HANDLE hMutex)
  • D: BOOL UnlockMutex(HANDLE hMutex)
View Answer
A

Q3168: Critical section and mutex both provide _______ control.
  • A: event
  • B: priority
  • C: thread
  • D: exclusive
View Answer
D

Q3169: The term 'mutex' is derived from _______.
  • A: Module Exit
  • B: Multiple Users
  • C: Mutual Exclusion
  • D: Mutual Execution
View Answer
C

Q3170: Mutexes can become signaled when _______.
  • A: they are deleted
  • B: abandoned by a thread
  • C: released twice
  • D: used across processes
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now