System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1671: The .LIB file is required during the _______ of the calling program.
- A: installation
- B: building
- C: compilation
- D: linking
View Answer
D
Q1672: During execution, the DLL must be found by _______ loader
- A: DLL
- B: manager
- C: linker
- D: OS
View Answer
B
Q1673: The keyword `LIBSPEC` is defined based on whether _______ is set.
- A: MYLIBRARY_EXPORTS
- B: STATIC_LINK
- C: EXPORTMODE
- D: EXTERNAL_USE
View Answer
A
Q1674: Which file contains stub functions for DLL function calls?
- A: .DLL
- B: .LIB
- C: .CPP
- D: .DEF
View Answer
B
Q1675: Using extern "C" avoids _______ in exported function names.
- A: code optimization
- B: syntax checking
- C: name mangling
- D: function expansion
View Answer
C
Q1676: The GetSystemDirectory() function returns the path of _______.
- A: application folder
- B: system DLLs
- C: system root
- D: source directory
View Answer
B
Q1677: The function used to get the path to Windows folder is _______.
- A: GetWinDir()
- B: FindWindowsPath()
- C: GetWindowsDirectory()
- D: LocateWinDir()
View Answer
C
Q1678: The PATH environment variable contains paths to _______.
- A: compilers
- B: shared DLLs
- C: header files
- D: system directories
View Answer
B
Q1679: DLL functions must be declared as _______ to be usable by external programs.
- A: static
- B: private
- C: exported
- D: inline
View Answer
C
Q1680: To enable proper DLL usage, function interfaces should be carefully _______.
- A: compiled
- B: hidden
- C: tested
- D: exported
View Answer
D