Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q3171: WaitForMultipleObjects() is used when a thread needs to _______.
  • A: wait on several mutexes
  • B: wait on one mutex
  • C: wait for a timeout
  • D: wake other threads
View Answer
A

Q3172: Mutexes are part of _______ API.
  • A: Unix
  • B: Linux
  • C: Windows
  • D: POSIX
View Answer
C

Q3173: Mutex is a synchronization _______.
  • A: event
  • B: object
  • C: thread
  • D: resource
View Answer
B

Q3174: In OpenMutex(), what happens if the named mutex does not exist?
  • A: New mutex is created
  • B: Error occurs
  • C: Thread is paused
  • D: Mutex is recycled
View Answer
B

Q3175: The main thread is typically responsible for _______ the mutex.
  • A: releasing
  • B: opening
  • C: creating
  • D: abandoning
View Answer
C

Q3176: OpenMutex() is usually called by _______ threads.
  • A: main
  • B: sub
  • C: worker
  • D: other
View Answer
C

Q3177: Mutex handles are used for _______.
  • A: process control
  • B: thread priority
  • C: identification and synchronization
  • D: user interface
View Answer
C

Q3178: When using WaitForSingleObject(), what is being waited on?
  • A: event
  • B: thread handle
  • C: mutex handle
  • D: file pointer
View Answer
C

Q3179: CreateMutex() has how many parameters?
  • A: 1
  • B: 2
  • C: 3
  • D: 4
View Answer
C

Q3180: The function ReleaseMutex() is declared in _______.
  • A: cstdio
  • B: windows.h
  • C: iostream
  • D: stdlib.h
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now