Dear Aspirants,
Welcome to the Professional Knowledge Section in Affairscloud.com. Here we are providing sample questions in Compiler Design. It will be useful for the IBPS SO IT officer and SBI Assistant Manager(System). We have also included some important questions that are repeatedly asked in previous exams.
- The output of lexical analyser is _________
A. A set of regular expressions
B. Syntax tree
C. Set of tokens
D. None of the AboveC. Set of tokens - A bottom-up parser generates ___________
A. right-most derivation
B. left-most derivation
C. right-most derivation in reverse
D. left-most derivation in reverseC. right-most derivation in reverse - A top-down parser generates ___________
A. right-most derivation
B. left-most derivation
C. right-most derivation in reverse
D. left-most derivation in reverseB. left-most derivation - A form of recursive-descent parsing that does not require any back-tracking is known as__________
A. Predictive parsing
B. Recursive-descent parsing
C. Both (A) and (B)
D. None of the aboveA. Predictive parsing - __________ checks whether the parse tree constructed follows the rules of a language.
A. Syntax Analysis
B. Semantic Analysis
C. Lexical Analysis
D. None of the aboveB. Semantic Analysis - Which of the following is/are advantage(s) of Compiler Technology?
A. Parsers for HTML in web browser
B. Software testing
C. Malicious code detection
D. All of the aboveD. All of the above - __________ defines the syntax of a programming language.
A. Token
B. Pattern
C. Context-Free Grammar
D. None of the aboveC. Context-Free Grammar - The graph that shows the basic blocks and their successor relationship is called_______
A. Control graph
B. Hamiltonian graph
C. Flow Chart
D. None of the aboveC. Flow Chart - The optimization technique which is typically applied on loops is _____
A. Peephole optimization
B. Removal of invariant computation
C. Constant folding
D. All of the AboveD. All of the Above - Semantic errors can be detected at__________
A. run time
B. compile time
C. Both (A) and (B)
D. None of the aboveB. compile time
AffairsCloud Recommends Oliveboard Mock Test
AffairsCloud Ebook - Support Us to Grow
Govt Jobs by Category
Bank Jobs Notification