Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1741: In the sample code, the function `cci_f` likely performs _______.
  • A: file decryption
  • B: DLL validation
  • C: file conversion or encryption
  • D: argument parsing
View Answer
C

Q1742: Explicit linking is useful when the DLL to be used is not known until runtime.
  • A: A
  • B: B
  • C:
  • D:
View Answer
A

Q1743: When is the DLL entry point executed?
  • A: Only during build
  • B: When DLL is written
  • C: When a process or thread attaches to the DLL
  • D: Only during linking
View Answer
C

Q1744: Which function is used to attach a process to a DLL explicitly?
  • A: GetProcAddress()
  • B: FreeLibrary()
  • C: LoadLibrary()
  • D: CreateFile()
View Answer
C

Q1745: In implicit linking, the DLL attaches to the process when the process _______.
  • A: is compiled
  • B: starts
  • C: exits
  • D: calls main function
View Answer
B

Q1746: What function detaches the DLL from a process in explicit linking?
  • A: RemoveLibrary()
  • B: FreeLibrary()
  • C: UnloadLibrary()
  • D: ExitProcess()
View Answer
B

Q1747: Which function can suppress execution of the DLL entry point?
  • A: LoadLibraryEx()
  • B: FreeLibrary()
  • C: InitDLL()
  • D: DllDisable()
View Answer
A

Q1748: The DLL entry point function is named _______.
  • A: MainDll()
  • B: EntryPoint()
  • C: DllMain()
  • D: WinMain()
View Answer
C

Q1749: How many parameters does DllMain() take?
  • A: 1
  • B: 2
  • C: 3
  • D: 4
View Answer
C

Q1750: The first parameter of DllMain is _______.
  • A: DLL name
  • B: Function ID
  • C: HINSTANCE handle
  • D: Return code
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now