Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 173
Q3821:
A work object in thread pool must have
A. an associated callback function
B. Multiple callback functions
C. No callback function
D. Only timer callbacks
Correct Answer: A
Chapter: 173
Q3822:
CreateThreadpoolTimer() callback can execute
A. Periodically
B. Only once
C. Only on I/O completion
D. Only on thread creation
Correct Answer: A
Chapter: 173
Q3823:
CreateThreadpoolWait() is used to wait for
A. an object to be signaled
B. CPU idle time
C. I/O completion
D. Network request completion
Correct Answer: A
Chapter: 173
Q3824:
CreateThreadpoolTimer() callbacks are specified in
A. time intervals
B. of thread counts
C. of process IDs
D. of CPU cores
Correct Answer: A
Chapter: 173
Q3825:
The callback function associated with CreateThreadPoolWork() is executed
A. By a thread from the thread pool
B. By the main thread
C. By a hardware interrupt
D. By a kernel thread
Correct Answer: A
Chapter: 173
Q3826:
SetThreadpoolWait() is used to specify
A. the object to wait on
B. the callback function
C. the thread pool size
D. the maximum wait time
Correct Answer: A
Chapter: 173
Q3827:
CreateThreadpoolIO() is mainly used for
A. Overlapped I/O operations
B. Thread synchronization
C. Timer events
D. Memory management
Correct Answer: A
Chapter: 173
Q3828:
CreateThreadpoolWait() callbacks occur
A. when the object is signaled
B. or when the callback completes
C. or after a timer expires
D. or after thread termination
Correct Answer: A
Chapter: 173
Q3829:
CreateThreadpoolTimer() callbacks may be executed
A. Periodically or after a delay
B. Only at system startup
C. Only on user request
D. Only on I/O completion
Correct Answer: A
Chapter: 173
Q3830:
If no callback function is associated with a work object, it
A. will not execute
B. Execute immediately
C. Cause system crash
D. Execute repeatedly
Correct Answer: A
Chapter: 173
Q3831:
The function SetThreadpoolWait() must be called
A. before CreateThreadpoolWait()
B. After CreateThreadpoolWait()
C. At system startup
D. On thread termination
Correct Answer: B
Chapter: 174
Q3832:
Which locking mechanism has the highest performance?
A. No Synchronization
B. Interlocked functions
C. SRW lock
D. Mutexes
Correct Answer: A
Chapter: 174
Q3833:
Interlocked functions are
A. Slow locking mechanisms
B. Fastest locking mechanisms
C. Moderate locking mechanisms
D. Deprecated locking mechanisms
Correct Answer: B
Chapter: 174
Q3834:
SRW locks perform best
A. when used with worker threads
B. with only exclusive locks
C. with no threads
D. with only shared locks
Correct Answer: A
Chapter: 174
Q3835:
Using SRW locks with conventional thread management compared to thread pool
A. Improves performance
B. Marginally degrades performance
C. No effect
D. Worsens drastically
Correct Answer: B
Chapter: 174
Q3836:
Critical sections perform poorly
A. when there are many threads
B. when there is only one thread
C. when there are no threads
D. when used with SRW locks
Correct Answer: A
Chapter: 174
Q3837:
Critical sections performance can be improved
A. Using spin counts
B. Using mutexes
C. Using no synchronization
D. Using conventional thread management
Correct Answer: A
Chapter: 174
Q3838:
Mutexes have
A. the worst performance
B. the best performance
C. moderate performance
D. no impact on performance
Correct Answer: A
Chapter: 174
Q3839:
Mutex performance can be optimized
A. marginally using semaphore throttling
B. by increasing spin counts
C. by disabling threads
D. by using interlocked functions
Correct Answer: A
Chapter: 174
Q3840:
No synchronization runs faster but sacrifices
A. Accuracy
B. Security
C. Memory usage
D. Disk usage
Correct Answer: A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now