System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1731: If the DLL loads successfully, the hDLL variable should be _______.
- A: NULL
- B: A valid handle
- C: Zero
- D: Error string
View Answer
B
Q1732: If the function pointer is NULL after GetProcAddress, it means _______.
- A: Function exists
- B: Function not found
- C: DLL loaded correctly
- D: Parameters are invalid
View Answer
B
Q1733: A function pointer must be properly _______ before calling the function in the DLL.
- A: terminated
- B: loaded
- C: typecasted
- D: formatted
View Answer
C
Q1734: ReportError is used to handle _______.
- A: system initialization
- B: function results
- C: user interaction
- D: error cases in DLL loading and function calling
View Answer
D
Q1735: Using LoadLibrary and GetProcAddress together is an example of _______.
- A: static linking
- B: implicit linking
- C: explicit linking
- D: dynamic loading at compile-time
View Answer
C
Q1736: Explicit linking allows you to load and use DLL functions at _______.
- A: compile time
- B: link time
- C: run time
- D: preprocessing time
View Answer
C
Q1737: The result of GetProcAddress must be typecasted to the correct function pointer before use.
- A: A
- B: B
- C:
- D:
View Answer
A
Q1738: The pointer 'pcci' must be typecast to a function pointer before calling the DLL function.
- A: A
- B: B
- C:
- D:
View Answer
A
Q1739: If the DLL or the function is not found, the program terminates using ReportError.
- A: A
- B: B
- C:
- D:
View Answer
A
Q1740: The entry point function name passed to GetProcAddress must match the name inside the DLL.
- A: A
- B: B
- C:
- D:
View Answer
A