CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following statements:
S1: Purpose of using intermediate code in compilers is to improve the register allocation.
S2: Operator grammer allows unit production .
S3: Directed acyclic graph can be used to eliminate the common sub expression
which of the above statements is / are correct?



A
All S1 ,S2 , S3 only
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
S1 and S2 only
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
S2 and S3 only
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
S1 and S3 only
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C S2 and S3 only
S1 : Intermediate code generation enhances the portability of the code . S1 is incorrect .
S2 : Operator grammer allows unit production . It has following restriction.
Two nonterminal should not adjacent
Null production {Aϵ } is not allowed in the grammer .
S3: Directed acyclic graph is used to eliminate common sub expression .
Both S2 amd S3 is correct.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Introduction to Chemical Bonding
CHEMISTRY
Watch in App
Join BYJU'S Learning Program
CrossIcon