Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 138
Q2961:
Windows supports how many basic synchronization objects?
A. Two
B. Three
C. Four
D. Five
Correct Answer: C
Chapter: 138
Q2962:
Which of the following is NOT a synchronization object in Windows?
A. Mutex
B. Semaphore
C. Event
D. Array
Correct Answer: D
Chapter: 138
Q2963:
________ is used to enforce mutual exclusion between threads.
A. Critical Section
B. Deadlock
C. Event Handler
D. Pointer Arithmetic
Correct Answer: A
Chapter: 138
Q2964:
File locks are useful when ________.
A. handling system calls
B. synchronizing local memory
C. multiple processes access a file
D. encrypting folders
Correct Answer: C
Chapter: 138
Q2965:
Synchronization objects must be used carefully to avoid ________.
A. low performance
B. syntax errors
C. deadlocks
D. memory leaks
Correct Answer: C
Chapter: 138
Q2966:
A ________ is used when multiple processes need shared access control to a resource.
A. Function Pointer
B. Semaphore
C. Compiler
D. Switch
Correct Answer: B
Chapter: 138
Q2967:
SRW Locks and Condition Variables are available in ________ versions of Windows.
A. legacy
B. newer
C. beta
D. enterprise
Correct Answer: B
Chapter: 138
Q2968:
Which is an advanced synchronization object introduced in newer Windows versions?
A. Thread Group
B. Waitable Timer
C. File Handle
D. DLL Lock
Correct Answer: B
Chapter: 138
Q2969:
IO Completion Ports are used for ________.
A. thread priority
B. asynchronous I/O operations
C. deadlock resolution
D. security updates
Correct Answer: B
Chapter: 138
Q2970:
Critical Sections are lighter than Mutexes because they are used in ________.
A. file systems
B. single-process scenarios
C. multiple processes
D. kernel mode
Correct Answer: B
Chapter: 138
Q2971:
________ helps prevent multiple threads from accessing shared data simultaneously.
A. OpenFileDialog
B. Random Access
C. Synchronization Objects
D. TextBox Control
Correct Answer: C
Chapter: 138
Q2972:
Which synchronization mechanism allows multiple wait conditions?
A. WaitForSingleObject
B. WaitForMultipleObjects
C. WaitUntil
D. FileWait
Correct Answer: B
Chapter: 138
Q2973:
Threads can wait for multiple objects using ________ function.
A. Sleep()
B. LockThread()
C. WaitForMultipleObjects()
D. GetThreadID()
Correct Answer: C
Chapter: 138
Q2974:
Mutexes can be shared between ________.
A. classes
B. processes
C. modules
D. variables
Correct Answer: B
Chapter: 138
Q2975:
The main risk of improper use of synchronization objects is ________.
A. low speed
B. deadlock
C. data corruption
D. buffer overflow
Correct Answer: B
Chapter: 138
Q2976:
Windows supports Events as a ________ object.
A. graphics
B. file
C. synchronization
D. registry
Correct Answer: C
Chapter: 138
Q2977:
Mutex, Semaphore, Event, and Critical Section are types of ________ in Windows.
A. threads
B. timers
C. synchronization objects
D. I/O modules
Correct Answer: C
Chapter: 138
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
Correct Answer: C
Chapter: 138
Q2979:
A Waitable Timer is an example of an ________ synchronization object.
A. invalid
B. outdated
C. advanced
D. temporary
Correct Answer: C
Chapter: 138
Q2980:
Semaphores are mostly used when ________ threads need access to a limited resource.
A. few
B. zero
C. multiple
D. single
Correct Answer: C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now