Dynamic Linking and Loading MCQs

30 min Score: 0 Attempted: 0/30 Subscribe
1. What is dynamic linking?





2. Which of the following is an advantage of dynamic linking?





3. What is the main purpose of dynamic loading?





4. Which file format is commonly used for dynamic libraries in Windows?





5. Which file format is commonly used for shared libraries in Linux/Unix?





6. When does the linker resolve external symbols in dynamic linking?





7. Which of the following is a risk of dynamic linking?





8. What is a stub in dynamic linking?





9. Which of the following is true about static linking compared to dynamic linking?





10. What is “lazy binding” in dynamic linking?





11. Which component is responsible for loading dynamic libraries at runtime?





12. What is the main disadvantage of dynamic linking?





13. Which function is used in C to dynamically load a library in Unix/Linux?





14. Which function is used in Windows to dynamically load a library?





15. What is the purpose of dlsym() in dynamic loading?





16. Which of the following functions is used to close a dynamically loaded library in Unix/Linux?





17. What is the term for conflicts caused by multiple versions of a dynamic library?





18. Which technique helps avoid “DLL hell”?





19. Which of the following is true about position-independent code (PIC)?





20. What is the main advantage of position-independent code in dynamic linking?





21. Which type of binding resolves all addresses at program load time?





22. What happens if a required dynamic library is missing at runtime?





23. Which of the following is NOT a component of dynamic linking?





24. What is the main benefit of shared libraries over static libraries?





25. Which linker resolves undefined symbols in dynamic linking?





26. What is an import table in dynamic linking?





27. Which of the following is true about early binding?





28. Which of the following can reduce the startup overhead of dynamically linked programs?





29. What is a relocation in dynamic linking?





30. Which of the following best describes the difference between dynamic linking and dynamic loading?





Leave a Comment

All copyrights Reserved by MCQsAnswers.com - Powered By T4Tutorials