System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q2521: WaitForMultipleObjects() can wait for a maximum of ______ objects at a time.
- A: 32
- B: 64
- C: 128
- D: 256
View Answer
B
Q2522: If there are 100 objects to wait for, how many calls to WaitForMultipleObjects() are needed?
- A: 1
- B: 2
- C: 3
- D: 4
View Answer
B
Q2523: The wait function waits for the object handle to become ______.
- A: signaled
- B: running
- C: suspended
- D: terminated
View Answer
A
Q2524: ExitThread() sets the thread object to the ______ state.
- A: signaled
- B: suspended
- C: running
- D: terminated
View Answer
A
Q2525: TerminateThread() releases all other threads waiting on the thread object by setting it to ______.
- A: signaled
- B: suspended
- C: running
- D: terminated
View Answer
A
Q2526: Multiple threads can wait on the ______ object.
- A: same
- B: different
- C: unique
- D: none
View Answer
A
Q2527: ExitProcess() sets the process state and the state of all its threads to ______.
- A: signaled
- B: suspended
- C: running
- D: terminated
View Answer
A
Q2528: WaitForMultipleObjects() takes the objects in the form of a(n) ______.
- A: array
- B: pointer
- C: structure
- D: queue
View Answer
A
Q2529: Waiting on a thread handle to become signaled means waiting for the thread to ______.
- A: start
- B: running
- C: terminate
- D: block
View Answer
B
Q2530: To wait for a thread to finish, you should use ______ function with the thread handle.
- A: ExitThread()
- B: WaitForSingleObject()
- C: TerminateThread()
- D: SuspendThread()
View Answer
B