Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q3751: The function InitializeSRWLock initializes a _______.
  • A: slimg reader-writer lock
  • B: mutex
  • C: thread pool
  • D: callback environment
View Answer
A

Q3752: The pWorkObjects array stores references to _______.
  • A: work objects
  • B: callback instances
  • C: thread IDs
  • D: thread handles
View Answer
A

Q3753: Memory for pWorkObjects is allocated using _______.
  • A: malloc
  • B: calloc
  • C: realloc
  • D: alloc
View Answer
A

Q3754: If pWorkObjects or pWorkObjArgsArray is NULL, the program _______.
  • A: Reports an error
  • B: Continues silently
  • C: Allocates memory again
  • D: Terminates threads
View Answer
A

Q3755: The API CreateThreadpoolWork returns a _______.
  • A: work object
  • B: thread handle
  • C: thread ID
  • D: callback instance
View Answer
A

Q3756: SubmitThreadpoolWork is called to _______.
  • A: Register the work object
  • B: Execute the callback function
  • C: Wait for threads to complete
  • D: Destroy the thread pool
View Answer
A

Q3757: WaitForThreadpoolWorkCallbacks waits until _______.
  • A: All callback functions return
  • B: One callback completes
  • C: A timeout occurs
  • D: Memory is freed
View Answer
A

Q3758: In the Worker callback function, the parameter Context points to _______.
  • A: Thread arguments
  • B: Callback instance
  • C: Work object
  • D: Current thread ID
View Answer
A

Q3759: AcquireSRWLockExclusive is used to _______.
  • A: Lock for exclusive access
  • B: Release the lock
  • C: Initialize lock
  • D: Destroy lock
View Answer
A

Q3760: ReleaseSRWLockExclusive is used to _______.
  • A: Release exclusive lock
  • B: Acquire exclusive lock
  • C: Destroy lock
  • D: Initialize lock
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now