Syntax Analyser

Question 1
Marks : +2 | -2
Pass Ratio : 50%
The fourth Generation computer was made up of ______________
Transistor
Vacuum tubes
Chips
Microprocessor chips
Explanation:
It is the only way to increase its throughput.
Question 2
Marks : +2 | -2
Pass Ratio : 100%
In Short Syntax Analysis Generates Parse Tree.
True
False
Explanation:
Short Syntax Analysis generates a parse tree.
Question 3
Marks : +2 | -2
Pass Ratio : 100%
Parsers are expected to parse the whole code.
True
False
Explanation:
Parsers are expected to parse the whole code even if some errors exist in the program.
Question 4
Marks : +2 | -2
Pass Ratio : 50%
By whom is the symbol table created?
Compiler
Interpreter
Assembler
None of the mentioned
Explanation:
Symbol table is created by the compiler which contains the list of lexemes or tokens.
Question 5
Marks : +2 | -2
Pass Ratio : 50%
Which of the following system software resides in the main memory?
Text Editor
Assembler
Linker
Loader
Explanation:
Loader is used to loading programs.
Question 6
Marks : +2 | -2
Pass Ratio : 100%
What does a Syntactic Analyser do?
Maintain Symbol Table
Collect type of information
Create parse tree
None of the mentioned
Explanation:
Syntax analyzer will just create a parse tree. Semantic Analyzer checks the meaning of the string parsed.
Question 7
Marks : +2 | -2
Pass Ratio : 100%
Type checking is normally done during ____________
Lexical Analysis
Syntax Analysis
Syntax Directed Translation
Code generation
Explanation:
It is the function of Syntax directed translation.
Question 8
Marks : +2 | -2
Pass Ratio : 100%
From where it takes its input from?
Lexical analyser
Syntactic Analyser
Semantic Analyser
None of the mentioned
Explanation:
A syntax analyzer or parser takes the input from a lexical analyzer in the form of token streams.
Question 9
Marks : +2 | -2
Pass Ratio : 100%
A grammar for a programming language is a formal description of _______________
Syntax
Semantics
Structure
Library
Explanation:
The grammar clearly indicates which type of structure does a program has.
Question 10
Marks : +2 | -2
Pass Ratio : 100%
Which of these features of assembler are Machine-Dependent?
Instruction formats
Addressing modes
Program relocation
All of the mentioned
Explanation:
All of these options are features of assembler which are machine dependent.