Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1681: The call to an exported DLL function from another program goes through the _______.
  • A: .EXE
  • B: .DEF
  • C: .LIB
  • D: .TXT
View Answer
C

Q1682: Which of the following ensures consistent naming in exported DLLs?
  • A: extern “C”
  • B: STATIC_DEFINE
  • C: void usage()
  • D: defined (WINLIB)
View Answer
A

Q1683: In a macro structure, LIBSPEC helps manage _______ between modules.
  • A: function conflicts
  • B: compiler warnings
  • C: linking logic
  • D: import/export declarations
View Answer
D

Q1684: What is required in explicit linking to use a function from a DLL?
  • A: A direct call to the function
  • B: A declared function in the program
  • C: A pointer to the function
  • D: An import statement
View Answer
C

Q1685: Which function is used to load a DLL in Windows?
  • A: LoadFunction
  • B: GetProcAddress
  • C: LoadLibrary
  • D: ImportDLL
View Answer
C

Q1686: Which of the following is a variation of LoadLibrary that includes additional parameters?
  • A: LoadFunction
  • B: LoadDLL
  • C: LoadLibraryEx
  • D: LinkLibrary
View Answer
C

Q1687: In explicit linking, what is returned by LoadLibrary on failure?
  • A: -1
  • B: nullptr
  • C: NULL
  • D: INVALID_HANDLE_VALUE
View Answer
C

Q1688: The function pointer is declared in the calling program in explicit linking.
  • A: A
  • B: B
  • C:
  • D:
View Answer
B

Q1689: Explicit linking allows the program to decide at runtime which DLL to load.
  • A: A
  • B: B
  • C:
  • D:
View Answer
A

Q1690: Which Windows API function is used to obtain the address of a function in a DLL?
  • A: LoadFunction
  • B: GetProcAddress
  • C: FindAddress
  • D: LocateFunction
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now