Code Optimization MCQs
1. What are the sources of optimization for basic blocks in code? a) Loop unrollingb) Instruction schedulingc) Register allocationd) All of the aboveAnswer: d) All … Read more
1. What are the sources of optimization for basic blocks in code? a) Loop unrollingb) Instruction schedulingc) Register allocationd) All of the aboveAnswer: d) All … Read more
1. Which phase of the compiler is responsible for generating intermediate code? a) Syntax Analysisb) Semantic Analysisc) Intermediate Code Generationd) Code Optimization Answer: c) Intermediate … Read more
1. What is the purpose of a type system in programming languages? a) To enforce syntactic correctnessb) To specify program behaviorc) To ensure memory allocationd) … Read more
1. Which parsing technique is known for starting from the root of the parse tree and recursively expands nodes to match the input? a) Top-down … Read more