Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q3721: Thread pools are created and assigned _______.
  • A: thread objects
  • B: memory blocks
  • C: processes
  • D: data streams
View Answer
A

Q3722: The thread objects in a thread pool execute via a _______.
  • A: loop
  • B: function
  • C: callback
  • D: pointer
View Answer
C

Q3723: In the API CreateThreadpoolWork, the parameter pfnwk represents a pointer to the _______.
  • A: callback function
  • B: work object
  • C: thread handle
  • D: callback instance
View Answer
A

Q3724: The pv parameter in CreateThreadpoolWork API is _______.
  • A: required
  • B: a thread ID
  • C: an optional value passed to the callback
  • D: function parameter
View Answer
C

Q3725: The pcbe parameter in CreateThreadpoolWork usually uses the _______.
  • A: default TP_CALLBACK_ENVIRON structure
  • B: custom structure
  • C: thread pool handle
  • D: thread ID
View Answer
A

Q3726: The API SubmitThreadpoolWork is used to _______.
  • A: start a new thread
  • B: register a work object
  • C: cancel a thread
  • D: wait for a thread to finish
View Answer
B

Q3727: The callback function associated with the work object in SubmitThreadpoolWork is executed how many times?
  • A: Once
  • B: Multiple times
  • C: Depends on input
  • D: Depends on CPU cores
View Answer
A

Q3728: Which scheduler decides the thread used to run the callback function?
  • A: Programmer
  • B: Kernel
  • C: Windows Service
  • D: User
View Answer
B

Q3729: Programmers do not need to manage threads when using thread pools, but they must still enforce _______.
  • A: thread creation
  • B: synchronization
  • C: memory allocation
  • D: thread termination
View Answer
B

Q3730: The API WaitForThreadpoolWorkCallbacks will return after _______.
  • A: a timeout period
  • B: all callback functions have returned
  • C: any callback starts
  • D: all callbacks are canceled
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now