Target Code Representation MCQs

30 min Score: 0 Attempted: 0/30 Subscribe
1. What is the primary purpose of target code in compiler design?





2. Which of the following is considered a target code?





3. What is the difference between intermediate code and target code?





4. Which form of target code is closest to the hardware?





5. Which of the following is NOT a common representation of target code?





6. What is the role of code generation in target code representation?





7. Which of the following is a characteristic of good target code?





8. What is a common challenge in target code generation?





9. What is register allocation in target code generation?





10. Which type of machine instructions are used in target code?





11. What is an example of a target code optimization?





12. In target code generation, what is an instruction selection problem?





13. What is peephole optimization?





14. What is a three-address code in compiler design?





15. What is the difference between absolute and relocatable target code?





16. Which type of target code is platform-independent?





17. Which of the following is a disadvantage of direct machine code generation?





18. What is the purpose of instruction scheduling in target code generation?





19. What is the role of a code generator in a compiler?





20. Which type of target code is executed by a virtual machine?





21. What is the main advantage of using an intermediate code before generating target code?





22. In target code, what is the significance of addressing modes?





23. What is object code in compiler terminology?





24. Which component of the compiler is responsible for translating high-level constructs like loops into target instructions?





25. What is the main goal of target code optimization?





26. Which type of target code is used by the Java Virtual Machine (JVM)?





27. What is the difference between static and dynamic target code?





28. Which optimization technique in target code reduces the number of instructions executed?





29. What is the function of a linker in relation to target code?





30. Why is target code often platform-specific?





Leave a Comment

All copyrights Reserved by MCQsAnswers.com - Powered By T4Tutorials