Sail E0 Webinar

MCQs

Total Questions : 24 | Page 2 of 3 pages
Question 11. The parsing technique that avoids back tracking is:
  1.    Top-down parsing
  2.    Recursive-descent parsing
  3.    Predictive
  4.    None of these
 Discuss Question
Answer: Option C. -> Predictive
Question 12. Code optimization is responsibility of:
  1.    Application programmer
  2.    System programmer
  3.    Operating system
  4.    Both A & B
 Discuss Question
Answer: Option B. -> System programmer
Question 13. Dead-code elimination in machine code optimization refers to:
  1.    removal of all labels.
  2.    removal of values that never get used.
  3.    removal of function which are not involved.
  4.    None of these
 Discuss Question
Answer: Option B. -> removal of values that never get used.
Question 14. From the point of view of the programmer, what are the major advantages of using a high-level language rather than internal machine code or assembly language ?
  1.    Program portability
  2.    Easy development
  3.    Efficiency
  4.    None of these
 Discuss Question
Answer: Option B. -> Easy development
Question 15. In
  1.    Loop unrolling
  2.    Strength reduction
  3.    Loop concatenation
  4.    Loop jamming
 Discuss Question
Answer: Option D. -> Loop jamming
Question 16. Which of the following are Assembler Directives?(i) EQU(ii) ORIGIN(iii) START(iv) END
  1.    (ii), (iii) and (iv)
  2.    (i), (iii) and (iv)
  3.    (iii) and (iv)
  4.    (i), (ii), (iii) and (iv)
 Discuss Question
Answer: Option D. -> (i), (ii), (iii) and (iv)
Question 17. Which of the statements related to Compilers is wrong ?
  1.    Lexical analysis is breaking the input into tokens
  2.    Syntax analysis is for parsing the phrase
  3.    Syntax analysis is for analyzing the semantic
  4.    All of above
 Discuss Question
Answer: Option C. -> Syntax analysis is for analyzing the semantic
Question 18. A permanent database of a general model of compiler is
  1.    Identifier table
  2.    Page map table
  3.    Literal table
  4.    Terminal table
 Discuss Question
Answer: Option D. -> Terminal table
Question 19. In a two pass compiler, during the first pass:
  1.    user defined address symbols are correlated with their binary equivalent
  2.    the syntax of the statement is checked and mistakes, if any, are listed
  3.    object program is generated
  4.    None of these
 Discuss Question
Answer: Option A. -> user defined address symbols are correlated with their binary equivalent
Question 20. Grammar of the programming is checked at …………… phase of compiler
  1.    semantic analysis
  2.    code generation
  3.    syntax analysis
  4.    All of above
 Discuss Question
Answer: Option C. -> syntax analysis

Latest Videos

Latest Test Papers