Question - 1
- Program
- Language
- Hardware
- Memory
Solutions
Answer- A
Question - 2
Compiler translates the source code to
- Machine code
- Binary code
- Executable code
- Both A & B
Solutions
Answer- D
Question - 3
What is the output of lexical analyzer?
- A parse tree
- A list of tokens
- Intermediate code
- Processed code
Solutions
Answer- B
Question - 4
- Is optimized to take less time for execution
- Optimized the code
- Is optimized to occupy less memory
- None of the above
Solutions
Answer- B
Question - 5
- Bottom up parser
- Top down parser
- Both A & B
- None of the above
Solutions
Answer- A
Question - 6
What is the action of parsing the source program into proper syntatic classes?
- Syntax analysis
- Lexical analysis
- Interpretation analysis
- General syntax analysis
Solutions
Answer- B
Question - 7
Which of the following is used for grouping of characters into tokens?
- Parser
- Code generator
- Lexical analyzer
- Code generator
Solutions
Answer- C
Question - 8
How many parts of compiler are there?
Answer- A
Question - 9
____ is a process of finding a parse tree for a string of tokens.
- Analysing
- Recognizing
- Parsing
- Tokenizing
Solutions
Answer- C
Question - 10
Compiler should report the presence of __________ in the source program, in translation process.
- Classes
- Objects
- Errors
- Text
Solutions
Answer- C
Question - 11
A _________ is a software utility that translates code written in higher language into a low level language.
- Text editor
- Compiler
- Interpreter
- Converter
Solutions
Answer- B
Question - 12
A grammar that produces more than one parse tree for some sentence is called as
- Ambiguous
- Regular
- Unambiguous
- All of these
Solutions
Answer- A
Question - 13
Representing the syntax by a grammar is advantageous. What is the cause?
- It is concise
- It is accurate
- Automation becomes easy
- All of the above
Solutions
Answer- D
Question - 14
Grammar of the programming is checked at _______ phase of compiler.
- Semantic analysis
- Syntax analysis
- Code optimization
- Code generation
Solutions
Answer- B
Question - 15
A compiler translate high level programs into low level programs, which is called as
- Beta code
- Compiled code
- Source code
- Object code
Solutions
Answer- D
Question - 16
Compiler can check ________ error.
- Logical
- Content
- Syntax
- None of the above
Solutions
Answer- C
Question - 17
which is the permanent data base in the geneal model of Compiler ?
- source code
- literal table
- identifier table
- terminal table
Solutions
Answer- A
Question - 18
- An interpreter is a decoder which provides very efficient execution
- An interpreter is a general purpose language providing very efficient execution
- An interpreter does the conversion line by line as the program is run
- An interpreter is the representation of the system being designed
Solutions
Answer- D
Question - 19
which of the following parsers is the most powerful ?
- Canonical LR
- SLR
- LALR
- Operator - precedence
Solutions
Answer- A
Question - 20
The translator program used in assembly language is called
- Assembler
- Interpreter
- Compiler
- Translator
Solutions
Answer- A
Practice more set questions