Academic Resource
Aptitude
Data Interpretation
Verbal Reasoning
Non Verbal Reasoning
Verbal Ability
Programming
General Knowledge
Puzzle
Engineering
Computer Engineering
Electronics and Communication
Electrical Engineering
Mechanical Engineering
Civil Engineering
Biotechnology
Architecture & Planning
Online Test
Aptitude Test
Data Interpretation Test
Verbal Reasoning Test
Non Verbal Reasoning Test
Verbal Ability Test
Exams
More
Full Forms
Home
»
Compiler Design
»
Compiler design miscellaneous
» Question
Compiler design miscellaneous
Easy Questions
Compiler Design
Compiler design miscellaneous
Consider the following Syntax Directed Translation Scheme (SDTS), with non-terminals {S, A} and terminals{a, b}.
S → aA {print 1}
S → a {print 2}
A → Sb {print 3}
Using the above SDTS, the output printed by a bottom up parser, for the input
aab
is :
1 3 2
2 2 3
2 3 1
syntax error
Correct Option:
C
Previous Question
Next Question
Your comments will be displayed only after manual approval.
Post your Comment