Compiler Design Lab Exam Practical Viva Questions and Answers Pdf - 1

Question: 1

What is the action of parsing the source program into proper syntatic classes?

(A) Syntax analysis

(B) Lexical analyis

(C) Interpretation analysis

(D) General syntax analysis

Ans: B

Lexical analyis

Question: 2

____ is a process of finding a parse tree for a string of tokens.

(A) Analysing

(B) Recognizing

(C) Parsing

(D) Tokenizing

Ans: C

Parsing

Question: 3

Representing the syntax by a grammar is advantageous. What is the cause?

(A) It is concise

(B) It is accurate

(C) Automation becomes easy

(D) All of the above

Ans: D

All of the above

Question: 4

A grammar that produces more than one parse tree for some sentence is called as

(A) Ambiguous

(B) Regular

(C) Unambiguous

(D) All of these

Ans: A

Ambiguous

Question: 5

A _____ is a software utility that translates code written in higher language into a low level language.

(A) Compiler

(B) Converter

(C) Text editor

(D) Code optimizer

Ans: A

Compiler

Related Questions