System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Chapter: 86
Q1781:
Why are DLL upgrades sometimes problematic?
A. They reduce speed
B. They remove features
C. They change interfaces, affecting older applications
D. They are incompatible with Windows 10
Correct Answer:
C
Chapter: 86
Q1782:
What may happen if an application requiring a newer DLL links with an old version?
A. It works with improved performance
B. It may not find required functionality
C. It will auto-update DLL
D. It will compile twice
Correct Answer:
B
Chapter: 86
Q1783:
Which method is suggested to avoid DLL version conflicts?
A. Use absolute file paths
B. Use separate folders for each DLL
C. Use same file name
D. Use compressed DLLs
Correct Answer:
B
Chapter: 86
Q1784:
What is a practical way to version DLLs and LIBs?
A. Append dates in names
B. Use random numbers in names
C. Use version numbers in names like Utils_4_0.DLL
D. Use symbols instead of names
Correct Answer:
C
Chapter: 86
Q1785:
What is the purpose of the XML declaration in DLL versioning?
A. To display DLL contents
B. To link to system libraries
C. To specify required DLL versions
D. To compile DLL
Correct Answer:
C
Chapter: 86
Q1786:
Microsoft’s side-by-side DLL approach requires the application to declare its requirements using _______.
A. HTML
B. INI
C. XML
D. CMD
Correct Answer:
C
Chapter: 86
Q1787:
The callback function used to query DLL version information is _______.
A. GetDllInfo()
B. DllGetVersion()
C. GetVersion()
D. VersionQuery()
Correct Answer:
B
Chapter: 86
Q1788:
Which data structure is used to store DLL version information?
A. DLLINFO
B. DLLHEADER
C. DLLVERSION
D. DLLDATA
Correct Answer:
C
Chapter: 86
Q1789:
Which field in DLLVERSION specifies the size of the structure?
A. cbVersion
B. cbSize
C. cbLength
D. cbStruct
Correct Answer:
B
Chapter: 86
Q1790:
Which field represents the major version of a DLL?
A. dwMainVersion
B. dwVersionMajor
C. dwMajorVersion
D. dwPrimaryVersion
Correct Answer:
C
Chapter: 86
Q1791:
If a DLL cannot run on Windows 9x, what should dwPlatformID be set to?
A. DLL_PLATFORM_WINDOWS
B. DLLVER_PLATFORM_WINDOWS
C. DLLVER_PLATFORM_NT
D. DLL_PLATFORM_NT
Correct Answer:
C
Chapter: 86
Q1792:
cbSize in DLLVERSION must be set to _______.
A. sizeof(DLLVERSION)
B. 0x00F0
C. MAX_SIZE
D. DLLSIZE
Correct Answer:
A
Chapter: 86
Q1793:
The concept of side-by-side assemblies helps in _______.
A. improving execution speed
B. resolving version conflicts
C. reducing application size
D. changing programming language
Correct Answer:
B
Chapter: 86
Q1794:
An updated DLL with new symbols can break older programs due to _______.
A. bug fixing
B. code optimization
C. interface changes
D. compiler error
Correct Answer:
C
Chapter: 86
Q1795:
Multiple processes can share a single implementation of a DLL.
A. A
B. B
Correct Answer:
A
Chapter: 86
Q1796:
Using version numbers in DLL names allows applications to link to specific versions.
A. A
B. B
Correct Answer:
A
Chapter: 86
Q1797:
Older applications may not work with newer DLLs due to changed interfaces.
A. A
B. B
Correct Answer:
A
Chapter: 86
Q1798:
Side-by-side DLLs eliminate the need for specifying version requirements.
A. A
B. B
Correct Answer:
B
Chapter: 86
Q1799:
The DllGetVersion() function returns version information dynamically.
A. A
B. B
Correct Answer:
A
Chapter: 86
Q1800:
DLLVERSION includes fields for major version, minor version, and platform ID.
A. A
B. B
Correct Answer:
A