NIMCET 2026 — Computer PYQ
NIMCET | Computer | 2026Which ONE of the following is a DISADVANTAGE of using dynamically linked library (DLL), compared to using statically linked library?
Choose the correct answer:
- A.
Executable file size is larger with DLL
- B.
RAM usage is larger with DLL
- C.
A program cannot take advantage of bug-fixes in the DLL, long after the program is written
- D.
None of the other options
(Correct Answer)
None of the other options
Explanation
The correct option is 4. None of the other options.
Explanation:
To understand why none of the first three options represent a disadvantage of a Dynamically Linked Library (DLL), let's analyze each statement by comparing Static Linking and Dynamic Linking:
Statement 1: Executable file size is larger with DLL (Incorrect)
In Static Linking: The entire library code is copied directly into the application's executable file (
.exe). This makes the executable file size significantly larger.In Dynamic Linking (DLL): The executable contains only references or stubs to the library functions, not the actual code. The actual code resides in a separate
.dllfile. Therefore, the executable file size is smaller with DLLs.
Statement 2: RAM usage is larger with DLL (Incorrect)
In Static Linking: If multiple running programs use the same static library, each program loads its own copy of the library into memory, wasting RAM.
In Dynamic Linking: A single copy of the DLL can be loaded into the physical memory and shared among multiple executing programs. This makes RAM usage smaller/more efficient with DLLs.
Statement 3: A program cannot take advantage of bug-fixes in the DLL, long after the program is written (Incorrect)
In Static Linking: Since the library is compiled into the executable, you must recompile and redistribute the entire application to apply a bug fix.
In Dynamic Linking: You can simply replace the old
.dllfile with an updated version containing the bug fix. The existing program will automatically use the fixed version without needing a recompilation. This is a major advantage, not a disadvantage.
Since statements 1, 2, and 3 actually state the opposite of how DLLs work (they list the advantages of DLLs as disadvantages), the correct choice is None of the other options.
