Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1691: GetProcAddress returns which of the following?
  • A: HMODULE
  • B: VOID*
  • C: FARPROC
  • D: DWORD
View Answer
C

Q1692: In GetProcAddress, what does the parameter 'lpProcName' represent?
  • A: Module handle
  • B: Name of the function
  • C: Function address
  • D: DLL name
View Answer
B

Q1693: The lpProcName in GetProcAddress must be specified as _______.
  • A: UNICODE
  • B: string in wide characters
  • C: ANSI string
  • D: binary stream
View Answer
C

Q1694: The return type of GetProcAddress is _______.
  • A: HMODULE
  • B: FARPROC
  • C: VOID*
  • D: PROC_ADDR
View Answer
B

Q1695: Before calling GetProcAddress, the DLL must be loaded using _______.
  • A: LoadProc
  • B: LoadLibrary
  • C: CallDLL
  • D: GetFunction
View Answer
B

Q1696: A pointer to a function is used instead of a direct function call in _______.
  • A: Implicit Linking
  • B: Static Linking
  • C: Explicit Linking
  • D: Manual Compilation
View Answer
C

Q1697: In explicit linking, is it necessary to specify the extension of the DLL file?
  • A: Yes
  • B: No
  • C: Only for .dll
  • D: Only in Unicode mode
View Answer
B

Q1698: In case of success, LoadLibrary returns _______.
  • A: NULL
  • B: HMODULE
  • C: handle to DLL
  • D: VOID*
View Answer
C

Q1699: FARPROC represents a _______.
  • A: handle to module
  • B: address of procedure
  • C: handle to DLL
  • D: function return code
View Answer
B

Q1700: To dynamically load a DLL and call a function, one must declare a _______ in code.
  • A: static variable
  • B: function pointer
  • C: linked function
  • D: included module
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now