System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q2971: ________ helps prevent multiple threads from accessing shared data simultaneously.
- A: OpenFileDialog
- B: Random Access
- C: Synchronization Objects
- D: TextBox Control
View Answer
C
Q2972: Which synchronization mechanism allows multiple wait conditions?
- A: WaitForSingleObject
- B: WaitForMultipleObjects
- C: WaitUntil
- D: FileWait
View Answer
B
Q2973: Threads can wait for multiple objects using ________ function.
- A: Sleep()
- B: LockThread()
- C: WaitForMultipleObjects()
- D: GetThreadID()
View Answer
C
Q2974: Mutexes can be shared between ________.
- A: classes
- B: processes
- C: modules
- D: variables
View Answer
B
Q2975: The main risk of improper use of synchronization objects is ________.
- A: low speed
- B: deadlock
- C: data corruption
- D: buffer overflow
View Answer
B
Q2976: Windows supports Events as a ________ object.
- A: graphics
- B: file
- C: synchronization
- D: registry
View Answer
C
Q2977: Mutex, Semaphore, Event, and Critical Section are types of ________ in Windows.
- A: threads
- B: timers
- C: synchronization objects
- D: I/O modules
View Answer
C
Q2978: Condition variables are useful for threads that ________.
- A: use file I/O
- B: operate independently
- C: need to wait for a condition
- D: only write logs
View Answer
C
Q2979: A Waitable Timer is an example of an ________ synchronization object.
- A: invalid
- B: outdated
- C: advanced
- D: temporary
View Answer
C
Q2980: Semaphores are mostly used when ________ threads need access to a limited resource.
- A: few
- B: zero
- C: multiple
- D: single
View Answer
C