Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 96
Q2101:
WaitForMultipleObjects() can monitor multiple events.
A. A
B. B
Correct Answer: A
Chapter: 96
Q2102:
The return value WAIT_OBJECT_0 + n indicates the signaled index.
A. A
B. B
Correct Answer: A
Chapter: 96
Q2103:
WaitForSingleObject() returns immediately if timeout is 0.
A. A
B. B
Correct Answer: A
Chapter: 96
Q2104:
dwMilliseconds allows setting a specific wait duration.
A. A
B. B
Correct Answer: A
Chapter: 96
Q2105:
Wait functions help synchronize process termination.
A. A
B. B
Correct Answer: A
Chapter: 96
Q2106:
WaitForSingleObject() waits for multiple handles.
A. A
B. B
Correct Answer: B
Chapter: 96
Q2107:
WaitForMultipleObjects() only waits for one object.
A. A
B. B
Correct Answer: B
Chapter: 96
Q2108:
Wait functions signal the waiting process when an event occurs.
A. A
B. B
Correct Answer: A
Chapter: 96
Q2109:
The handle in wait functions must refer to a waitable object.
A. A
B. B
Correct Answer: A
Chapter: 96
Q2110:
WaitForMultipleObjects() does not block if timeout is 0.
A. A
B. B
Correct Answer: A
Chapter: 96
Q2111:
The timeout in wait functions is specified in ______.
A. microseconds
B. milliseconds
C. seconds
D. ticks
Correct Answer: B
Chapter: 96
Q2112:
If bWaitAll is FALSE, the function returns when ______.
A. all handles are signaled
B. any one handle is signaled
C. timeout expires
D. process ends
Correct Answer: B
Chapter: 96
Q2113:
Which Windows function can wait for events, threads, or processes?
A. GetExitCodeProcess()
B. TerminateProcess()
C. WaitForMultipleObjects()
D. CloseHandle()
Correct Answer: C
Chapter: 96
Q2114:
Which of the following is NOT a return value of Wait functions?
A. WAIT_OBJECT_0
B. WAIT_TIMEOUT
C. WAIT_FAILED
D. WAIT_SUCCESS
Correct Answer: D
Chapter: 96
Q2115:
WAIT_ABANDONED_0 usually applies to ______.
A. semaphores
B. files
C. mutexes
D. events
Correct Answer: C
Chapter: 96
Q2116:
Which parameter is used to pass object handles to WaitForMultipleObjects()?
A. lpEvent
B. nCount
C. lpHandles
D. hObject
Correct Answer: C
Chapter: 96
Q2117:
How many handles can WaitForMultipleObjects() handle at maximum?
A. 32
B. 64
C. 128
D. MAXIMUM_WAIT_OBJECTS
Correct Answer: D
Chapter: 96
Q2118:
Wait functions are useful for synchronizing ______.
A. files
B. shared memory
C. processes
D. hardware
Correct Answer: C
Chapter: 96
Q2119:
bWaitAll = TRUE in WaitForMultipleObjects waits for ______.
A. the last object only
B. any one object
C. none of the objects
D. all objects
Correct Answer: D
Chapter: 96
Q2120:
WaitForSingleObject() blocks execution until the object becomes ______.
A. closed
B. signaled
C. referenced
D. unlocked
Correct Answer: B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now