Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1711: The primary advantage of explicit linking is _______.
  • A: higher speed
  • B: attempted error handling
  • C: late binding
  • D: faster execution
View Answer
C

Q1712: Using explicit linking, the application will crash if the function name passed to GetProcAddress is invalid.
  • A: A
  • B: B
  • C:
  • D:
View Answer
A

Q1713: The GetProcAddress function will return NULL if _______.
  • A: hModule is invalid
  • B: lpProcName is missing
  • C: the function is not exported
  • D: all of the above
View Answer
D

Q1714: Which Windows API is used to load a DLL for explicit linking?
  • A: LoadFile
  • B: LoadFunction
  • C: LoadLibrary
  • D: LoadModule
View Answer
C

Q1715: In the example, which function is used to obtain the address of 'cci_f' in the DLL?
  • A: FindFunction
  • B: LocateProc
  • C: GetProcAddress
  • D: GetEntryPoint
View Answer
C

Q1716: Which variable in the example is used to store the loaded DLL handle?
  • A: pcci
  • B: hDLL
  • C: YNResp
  • D: lpFileName
View Answer
B

Q1717: What is checked using the condition `if (argc < 5)`?
  • A: If DLL exists
  • B: If enough arguments are passed
  • C: If pointer is valid
  • D: If encryption is enabled
View Answer
B

Q1718: What is the error message shown if the DLL fails to load?
  • A: Failed calling function
  • B: Failed loading DLL.
  • C: Entry point not found
  • D: Invalid DLL
View Answer
B

Q1719: The function pointer ‘pcci’ is assigned the return value of _______.
  • A: LoadLibrary
  • B: GetProcAddress
  • C: argv
  • D: ReportError
View Answer
B

Q1720: If pcci is NULL, what does the program do?
  • A: Returns to OS
  • B: Calls ReportError
  • C: Skips function
  • D: Unloads DLL
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now