Compiler Design - Lexical analysis & Parsing

6:  

Terminal table

A. contains all constants in the program.
B. is a permanent table of decision rules in the form of patterns for matching with the uniform symbol table to discover syntactic structure.
C. consist of a full or partial list of the token is as they appear in the program created by lexical analysis and used for syntax analysis and interpretation.
D. is a permanent table which lists all keywords and special symbols of the language in symbolic form
 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



7:  

Advantage of incorporating the macro-processor into pass 1 is that

A. many functions have to be implemented twice
B. functions are combined and it is not necessary to create intermediate files as output from the macro-processor and input to the assembler.
C. more flexibility is available to the programmer in that he may use all the features of the assembler in conjunction with macros.
D. all of these
 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



8:  

 Which of the following is a phase of a compilation process ?

A. Lexical analysis
B. Code generation
C. Both (a) and (b)
D. None of these
 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



9:  

System program such a s compiler are designed so that they are

A. re-enterable
B. non-reusable
C. serially usable
D. None of these
 
 

Option: A

Explanation :

Click on Discuss to view users comments.

SHASHI said: (12:23am on Tuesday 24th April 2018)
RE ENTERABLE BECAUSE THESE CAN NOT BE MODIFIED

Write your comments here:



10:  

A series of statements explaining how the data is to be processed is called

A. assembly
B. machine
C. COBOL
D. program
 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:




Syllabus Covered in this section is

  • Compilation and Interpretation 
  • Bootstrap compilers
  • Phases of compilation process
  • Lexical analysis
  •  Context free grammars
  • Parsing and parse trees
  • Representation of parse (derivation) trees as rightmost and leftmost derivations
  • Bottom up parsers-shift-reduce, operator precedence and LR
  • Topdown parsers-left recursion and its· removal.
  • Recursive descent parser.
  • Predictive parser
  • Intermediate codes-Quadruples, Triples
  • Intermediate code generation
  • Target code generation
  • Basics of  Code optimization
  • Syntax directed translation
  • Runtime environments

This Section covers Multiple Choice Questions Answers in Compiler Design .

Who can benefit - 

  • Any undergraduate or postgraduate student who is seeking Compiler Design objective type questions answers can use this section.
  • Compiler Design Multiple Choice questions Answers can help you in interview preparation.
  • Compiler Design MCQ Questions Answers are also used by engineering students in the preparation of their Exams.
  • Any candidate who has to appear for DOEACC A, B or C level Exam can also learn Compiler Design Questions Answers.
  • All the teachers who are appearing for Kendriya Vidyalya Sangathan Entrance Exam can also use Compiler Design Multiple Choice Questions Answers.
  • Compiler Design MCQs can also be used by the students who are pursuing B.Sc or Msc Computer Science.
  • Compiler Design Questions Answers can also be used by BCA students for the preparation of their exams.
  • Any student who is pursuing B.Sc. or Msc  in Information Technology can also use this Compiler Design mcq Questions Answers.
  •  MCA students can also prepare for their exams using Compiler Design Objective Type Questions Answers.
  • You can get free access to Compiler Design mcq pdf.
  • You can also have online access to Compiler Design Questions Answers EBook.

Various Search Terms used for this section are

  • Compiler Design quiz questions with answers

  • Compiler Design exam questions answers

  • Compiler Design MCQ questions Answers

  • Compiler Design MCQ