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

Consider the following Parse Tree



What will be the Abstract Syntax Tree for the above Parse Tree?

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

The correct option is B
Abstract Syntax Tree is short representation of Parse Tree. AST contain leaf node as operand and non leaf node as operand. Parentheses, commas, semicolons can be ommited is AST.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Database Structuring
ACCOUNTANCY
Watch in App
Join BYJU'S Learning Program
CrossIcon