Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q3791: The use of TrySubmitThreadPoolCallback is suitable when threads are _______.
  • A: Simple and straightforward
  • B: Complex and dependent
  • C: CPU-bound
  • D: IO-bound
View Answer
A

Q3792: In the provided API, the type PTP_SIMPLE_CALLBACK refers to a callback function with parameters _______.
  • A: (PTP_CALLBACK_INSTANCE, PVOID)
  • B: (PTP_WORK, PVOID)
  • C: (PTP_CALLBACK_ENVIRON, PVOID)
  • D: (PTP_WORK_CALLBACK, PVOID)
View Answer
A

Q3793: Which API function creates a work item to be used with a thread pool?
  • A: TrySubmitThreadPoolCallback
  • B: CreateThreadpoolWork
  • C: SubmitThreadpoolWork
  • D: WaitForThreadpoolWorkCallbacks
View Answer
B

Q3794: When using TrySubmitThreadPoolCallback, the callback function pointer parameter is named _______.
  • A: pfnwk
  • B: pWork
  • C: pCallback
  • D: pfnCallback
View Answer
A

Q3795: The parameter "pv" in TrySubmitThreadPoolCallback is used to pass _______.
  • A: Thread priority
  • B: Callback context data
  • C: Thread ID
  • D: Number of threads
View Answer
B

Q3796: What is a thread pool according to MSDN?
  • A: A collection of worker threads to efficiently execute asynchronous callbacks
  • B: A queue of process threads
  • C: A collection of hardware threads
  • D: A pool of user interface threads
View Answer
A

Q3797: The main purpose of a thread pool is to
  • A: Reduce the number of application threads
  • B: Increase the number of user interface threads
  • C: Manage memory allocation
  • D: Control hardware resources
View Answer
A

Q3798: The thread pool helps applications that
  • A: Perform parallel processing
  • B: Perform single-threaded operations
  • C: Use only synchronous callbacks
  • D: Do not perform any background work
View Answer
A

Q3799: Every process has
  • A: One dedicated thread pool
  • B: Multiple thread pools
  • C: No thread pools
  • D: Depends on system configuration
View Answer
A

Q3800: When a callback function finishes executing, its thread
  • A: Becomes free for Windows scheduler
  • B: Terminates immediately
  • C: Becomes a user thread
  • D: Is deleted
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now