compiler designing mcq pdf bcs bca mca mcs srtmun pdf computer science bsc cs it
COMPILER DESIGNING MCQ BANK Q. The method which merges the bodies of two loops is -Constant folding -Loop jamming -Loop unrolling -None of these Ans: Loop jamming Q. A grammar that produces more than one parse tree for some sentence is called as -Ambiguous -Unambiguous -Regular -All of these Ans. -Ambiguous Q. Compiler translates the source code to -Executable code -Machine code -Binary code -Both B and C Ans. Both B and C Q. The bottom-up parsing method is also called -Shift reduce parsing -Predictive parsinng -Recursive descent parsing -None of these Ans: Shift reduce parsing Q. Which of the following groups is/are taken together into semantic structures? -syntax analyzer -Intermediate code generation -Lexical analyzer -Semantic analyzer Ans. Lexical analyzer Q. Grammar of the programming is checked at _______ phase of compiler. -Semantic analysis -Syntax analysis -Code optimization -Code generation Ans. Syntax analysis Q. A bottom-up parser generates -Left-most