Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q3371: What is the effect of calling CloseHandle on mutex and event objects?
  • A: Releases system resources
  • B: Starts the threads
  • C: Increments counters
  • D: Validates checksum
View Answer
A

Q3372: The consumer thread stops when:
  • A: User enters 's' command
  • B: All messages are consumed
  • C: Producer thread ends
  • D: Checksum fails
View Answer
A

Q3373: The producer thread generates messages at:
  • A: Random intervals
  • B: Fixed intervals
  • C: At user input
  • D: Constant speed
View Answer
A

Q3374: What does the MessageFill function update besides mData?
  • A: mChecksum and mTimestamp
  • B: fReady and fStop
  • C: mGuard and mReady
  • D: nCons and nLost
View Answer
A

Q3375: Which Windows API function is used to create an auto-reset event?
  • A: CreateEvent
  • B: CreateMutex
  • C: WaitForSingleObject
  • D: SetEvent
View Answer
A

Q3376: The producer-consumer problem is an example of:
  • A: Inter-thread synchronization
  • B: Database locking
  • C: File handling
  • D: Memory management
View Answer
A

Q3377: The variable nLost keeps track of:
  • A: Messages lost during processing
  • B: Messages consumed
  • C: Mutex locks
  • D: Event signals
View Answer
A

Q3378: The interlocked functions provide:
  • A: Atomic operations
  • B: Thread creation
  • C: Event signaling
  • D: Mutex locking
View Answer
A

Q3379: The variable mChecksum is used for:
  • A: Verifying message integrity
  • B: Controlling thread access
  • C: Signaling message readiness
  • D: Counting messages
View Answer
A

Q3380: Which Windows API is used to wait indefinitely for a synchronization object?
  • A: WaitForSingleObject
  • B: CreateMutex
  • C: CreateEvent
  • D: SetEvent
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now