Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1761: A thread detach is notified to DllMain when _______.
  • A: thread ends
  • B: thread is created
  • C: thread is paused
  • D: process exits
View Answer
A

Q1762: Which function disables thread attach/detach notifications in a DLL?
  • A: ExitThread()
  • B: DisableThreadAttach()
  • C: DisableThreadLibraryCalls()
  • D: BlockDllNotify()
View Answer
C

Q1763: Calling another DLL from inside DllMain() is _______.
  • A: recommended
  • B: unsafe
  • C: perfectly valid
  • D: necessary
View Answer
B

Q1764: DllMain is the function where a DLL should perform _______.
  • A: code compilation
  • B: user interaction
  • C: resource initialization
  • D: thread scheduling
View Answer
C

Q1765: LoadLibrary() must not be called inside DllMain() because it can _______.
  • A: optimize performance
  • B: trigger other entry points
  • C: start other processes
  • D: fix memory
View Answer
B

Q1766: The value of lpReserved in DllMain indicates _______.
  • A: handle of DLL
  • B: reason code
  • C: type of attachment
  • D: return value
View Answer
C

Q1767: All parameters to DllMain must be in a specific order.
  • A: A
  • B: B
  • C:
  • D:
View Answer
A

Q1768: LoadLibraryEx() provides more options than LoadLibrary().
  • A: A
  • B: B
  • C:
  • D:
View Answer
A

Q1769: DllMain should avoid calling functions that might block execution.
  • A: A
  • B: B
  • C:
  • D:
View Answer
A

Q1770: FreeLibrary() must be called to detach DLLs in explicit linking.
  • A: A
  • B: B
  • C:
  • D:
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now