Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 149
Q3281:
Using a CriticalSection around wait calls ensures that the execution remains _______ during waits.
A. unsynchronized
B. atomic
C. parallel
D. interrupted
Correct Answer: B
Chapter: 149
Q3282:
In semaphore limitations, the critical issue is that multiple wait calls may not execute as a _______ operation.
A. serial
B. parallel
C. atomic
D. locked
Correct Answer: C
Chapter: 149
Q3283:
Threads may enter a deadlock-like state if wait calls are _______ and thread switching occurs between them.
A. sequential
B. atomic
C. separate
D. combined
Correct Answer: C
Chapter: 150
Q3284:
Events are synchronization objects like Mutexes, Semaphores, and _______.
A. Critical Sections
B. Threads
C. Processes
D. Messages
Correct Answer: A
Chapter: 150
Q3285:
Events can indicate to other threads that a specific _______ now holds.
A. message condition
B. process state
C. variable change
D. system error
Correct Answer: A
Chapter: 150
Q3286:
Multiple threads can be released simultaneously when an event is _______.
A. triggered
B. reset
C. set
D. suspended
Correct Answer: A
Chapter: 150
Q3287:
Events are classified as either manual-reset or _______.
A. auto-reset
B. semi-reset
C. dual-reset
D. multi-reset
Correct Answer: B
Chapter: 150
Q3288:
The property of an event is set using the function _______.
A. CreateEvent()
B. OpenEvent()
C. SetEvent()
D. ResetEvent()
Correct Answer: A
Chapter: 150
Q3289:
A manual-reset event can signal _______ waiting threads simultaneously.
A. one
B. all
C. single
D. multiple
Correct Answer: D
Chapter: 150
Q3290:
An auto-reset event signals _______ waiting thread.
A. single
B. multiple
C. none
D. any
Correct Answer: A
Chapter: 150
Q3291:
The function CreateEvent() has a parameter bManualReset which is set to TRUE to create a _______ event.
A. manual-reset
B. auto-reset
C. semi-reset
D. dual-reset
Correct Answer: A
Chapter: 150
Q3292:
If bInitialState is TRUE in CreateEvent(), the event is created in a _______ state.
A. signaled
B. non-signaled
C. reset
D. pending
Correct Answer: A
Chapter: 150
Q3293:
A named event can be opened from any process using the function _______.
A. OpenEvent()
B. CreateEvent()
C. SetEvent()
D. ResetEvent()
Correct Answer: A
Chapter: 150
Q3294:
The function used to signal an event is _______.
A. SetEvent()
B. ResetEvent()
C. PulseEvent()
D. OpenEvent()
Correct Answer: A
Chapter: 150
Q3295:
In the case of an auto-reset event, the event automatically returns to a _______ state after releasing a thread.
A. signaled
B. non-signaled
C. waiting
D. blocked
Correct Answer: B
Chapter: 150
Q3296:
If no threads are waiting, an auto-reset event remains in the _______ state until a thread waits on it.
A. signaled
B. non-signaled
C. reset
D. suspended
Correct Answer: A
Chapter: 150
Q3297:
A manual-reset event remains signaled until _______ is called explicitly.
A. ResetEvent()
B. SetEvent()
C. PulseEvent()
D. OpenEvent()
Correct Answer: A
Chapter: 150
Q3298:
PulseEvent() releases all threads currently waiting for a _______ reset event.
A. manual
B. auto
C. auto-reset
D. dual
Correct Answer: A
Chapter: 150
Q3299:
PulseEvent() releases a single waiting thread if the event is an _______ reset event.
A. auto
B. manual
C. semi
D. multi
Correct Answer: A
Chapter: 150
Q3300:
When a manual-reset event is signaled, _______ threads are released.
A. all
B. single
C. none
D. one
Correct Answer: A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now