Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1701: The function GetProcAddress requires the module handle and _______.
  • A: DLL name
  • B: entry point name
  • C: file handle
  • D: entry ID
View Answer
B

Q1702: Explicit linking provides more flexibility than static linking.
  • A: A
  • B: B
  • C:
  • D:
View Answer
A

Q1703: The correct order to call a DLL function using explicit linking is:
  • A: LoadLibrary โ†’ GetProcAddress โ†’ Function Call
  • B: LoadLibrary โ†’ Function Call โ†’ GetProcAddress
  • C: GetProcAddress โ†’ LoadLibrary โ†’ Function Call
  • D: Function Call โ†’ LoadLibrary โ†’ GetProcAddress
View Answer
A

Q1704: The declaration `HMODULE LoadLibrary(LPCTSTR lpLibFileName);` is used to _______.
  • A: unload a DLL
  • B: find function pointer
  • C: load a DLL
  • D: assign DLL to pointer
View Answer
C

Q1705: HMODULE is used to represent the _______ returned by LoadLibrary.
  • A: function name
  • B: DLL name
  • C: module handle
  • D: parameter list
View Answer
C

Q1706: If LoadLibrary fails, the returned HMODULE is set to _______.
  • A: INVALID
  • B: HANDLE
  • C: VOID
  • D: NULL
View Answer
D

Q1707: What is the role of dwFlags in LoadLibraryEx?
  • A: Specifies function arguments
  • B: Controls loading behavior of DLL
  • C: Returns function pointer
  • D: Validates DLL signature
View Answer
B

Q1708: lpLibFileName in LoadLibraryEx does not require _______.
  • A: file extension
  • B: DLL name
  • C: path validity
  • D: full path
View Answer
A

Q1709: A C type function pointer can be used to _______ in a loaded DLL.
  • A: save data
  • B: call an exported function
  • C: unload it
  • D: check its memory
View Answer
B

Q1710: Explicit linking avoids compile-time dependency on a DLL.
  • A: A
  • B: B
  • C:
  • D:
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

๐Ÿš€ Start Quiz Now