Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations - NIMCET

Previous Year Question (PYQs)



Which of the following tasks could be attained using syntax trees in compiler design ?

(A) Type Checking
(B) Code Generation
(C) Code Optimization
(D) Error Handling

Choose the correct answer from the options given below :






Solution

Syntax trees (Abstract Syntax Tree – AST) are used in later compiler phases.


(A) Type Checking → Done using syntax tree ✔


(B) Code Generation → Uses syntax tree ✔


(C) Code Optimization → Uses syntax tree representation ✔


(D) Error Handling → Mainly done during lexical / syntax analysis ✘


Thus correct tasks:


(A), (B), (C)



Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...