The output of lexical analyzer is
Explanation: A lexical analyzer coverts character sequences to set of tokens.
The symbol table implementation is based on the property of locality of reference is
Explanation: Hash table is used as a reference for symbol table because it is efficient.
For operator precedence parsing, which one is true?
There are two important properties for these operator precedence parsers is that it does not appear on the right side of any production and no production has two adjacent non-terminals. Implying that no production right side is empty or has two adjacent non-terminals. So accordingly to property option (A) is correct.
Object program is a
Explanation: Since the input is the source language and the output that we get after the analysis is the machine language.
Which concept of FSA is used in the compiler?
Explanation: Because the lexer performs its analysis by going from one stage to another.
Which concept of grammar is used in the compiler
Explanation: As the lexical analysis of a grammar takes place in phases hence it is synonymous to parser.
Which of the following are Lexemes?
Explanation: Different Lexical Classes or Tokens or Lexemes Identifiers, Constants, Keywords, Operators.
What constitutes the stages of the compilation process?
Explanation: As defined in the compilation process.
The lexical analyzer takes_________as input and produces a stream of_______as output.
Explanation: As per the definition of Lexical Analyser which states that lexical analysis is the process of converting a sequence of characters into tokens.
Which grammar defines Lexical Syntax
The specification of a programming language often includes a set of rules, the lexical grammar, which defines the lexical syntax.
A compiler program written in a high level language is called
Explanation: The input that we give in high level language is also known as the source language.
System program such a compiler are designed so that they are
Explanation: For the convince of the user compilers are made re-enterable.
Which of the following is not feature of compiler?
Explanation: The objective of the compiler is clearly not to increase the execution time of the program.
A system program that brings together separately compiled modules of a program into a form language that is suitable for execution
Explanation: A loader which brings together the functions of a relocating loader with the ability to combine a number of program segments that have been independently compiled into an executable program.
A programmer, by mistakes writes a program to multiply two numbers instead of dividing them, how can this error be detected
Explanation: This is a logical error can’t be detected by any compiler or interpreter.
Doc | 2 Pages
Doc | 51 Pages
Doc | 9 Pages
Doc | 23 Pages
Test | 15 questions | 15 min
Test | 10 questions | 30 min
Test | 15 questions | 45 min
Test | 20 questions | 20 min
Test | 60 questions | 180 min