System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1651: Exported interfaces in DLLs are required for _______.
- A: debugging
- B: execution
- C: error logging
- D: interfacing with calling programs
View Answer
D
Q1652: Implicit linking is most commonly used when _______.
- A: functions must be loaded at runtime
- B: we want better control during execution
- C: dynamic allocation is needed
- D: DLLs are always available
View Answer
C
Q1653: To make a DLL function exportable, you must declare it using _______.
- A: #define
- B: declspec(dllexport)
- C: main()
- D: include header
View Answer
B
Q1654: Which file type holds the actual code of a DLL function?
- A: .EXE
- B: .TXT
- C: .DLL
- D: .LIB
View Answer
C
Q1655: The .LIB file generated in the build process serves as a _______ for function calls.
- A: entry point
- B: header
- C: stub
- D: source file
View Answer
C
Q1656: Which keyword is used in the calling program to import a DLL function?
- A: #IMPORT
- B: IMPORT
- C: DLLCALL
- D: declspec(dllimport)
View Answer
D
Q1657: The storage modifier used for exporting DLL functions is _______.
- A: declspec(dllexport)
- B: dll(lib)
- C: export_lib
- D: link_export
View Answer
A
Q1658: The keyword `declspec(dllimport)` is used in _______.
- A: the exporting library
- B: the importing program
- C: DLL header file
- D: source file
View Answer
B
Q1659: Which compiler automates the import/export declaration in DLLs?
- A: Turbo C++
- B: Visual C++
- C: GNU GCC
- D: Borland C++
View Answer
B
Q1660: In Visual C++, the import/export of DLL functions is handled _______.
- A: manually
- B: by linker
- C: automatically
- D: by debugger
View Answer
C