Core Computer Science Interview Questions on Compiler Design.
These questions on Compiler Design can be expected in a freshers job interview.
- Can you differentiate between ‘syntax analysis’ and ‘semantic analysis’ during compiler design?
- In simple words, what shall be the basic difference between top-down and bottom-up parsing?
- Can you say something about type checking and its importance?
- What is meant by syntax analysis and lexical analysis?
- What is the need for Symbol Table in Compilers?
- What is three address code?
- What are the conflicts that can occur in shift-reduce parser?
- What is the use of backpatching?
- What do you mean by Cross-Compiler?
- What is constant folding?
- What is a syntax directed definition?
- Explain about the issues in the design of code generator.
- What is the difference between DFA and NFA?
- What do you mean by a synthesized attribute
- Define annotated parse tree.
- Explain dangling reference with an example.
- What are the conflicts that occur in shift-reduce parse?
- What is the difference between a loosely coupled and tightly coupled system?
- What do you mean by a assembler? Explain it types.
- What is the fundamental difference between a ‘compiler’ and an ‘Interpreter’?
- Define the terms patterns, lexeme and token.
- Can you list some of the lexical errors.
- Define ambiguous grammar.
- Which of the two – linker, loader – is essential in a microcomputer? Can you justify your answer?
- How is Code optimization done using DAG?
- What do you mean by data flow analysis? Explain with examples data flow abstraction.
- What are the functions performed in synthesis phase of a compiler?
- What are the techniques involved in loop optimization?
- Explain what are the advantages of LALR parsing over SLR and CLR methods?
- What are the components of context free grammar?
- What is a annotated parse tree?
- Can you construct a DAG for the expression a=b*-c + b*-c
- What do you meant by data-flow engine?
- What are the different methods employed by Parser to recover from a syntactic error?
- Explain in brief how is the syntax tree constructed?
- What are optimizing compilers?
- Translate the arithmetic expression a * - (b + c) into a syntax tree.
- Name two compiler construction tools.
- What is a postfix notation? Explain.
- Explain what are the techniques involved in loop optimization.
Dear users. Please use the comment section for feedback and answers.
I need to get answers
ReplyDelete