Compilation and linking process — C++ MCQs

15
Score: 0
Attempted: 0/15
1. Which of the following stages converts source code into object code?



2. What is the purpose of the preprocessor in C++?



3. Which stage combines multiple object files into a single executable?



4. Which of the following is generated after the compilation stage?



5. Which command is typically used to compile a C++ program without linking?



6. During linking, what is resolved?



7. What file is produced after preprocessing?



8. Which of the following stages can generate a “undefined reference” error?



9. Which option allows viewing preprocessed code in g++?



10. In which stage are inline functions expanded?



11. Which of the following is true about static linking?



12. Which of the following is NOT part of the compilation process?



13. Which of these files is usually input to the linker?



14. Which type of error is detected at link time?



15. The main function is required because:



Contents Copyrights Reserved By T4Tutorials