Professional Documents
Culture Documents
QB Unit - I
QB Unit - I
QUESTION BANK
UNIT – I
ONE MARK QUESTIONS
1. A translator that takes as input a high level language program and translates into machine
language in one step is known as
a) Compiler b) Interpreter c) Preprocessor d) Assembler
2. Which of the following is used for grouping of characters into tokens?
a) Parser b) Code optimization c) Code generator d) Lexical analyzer
3. The lexical analyzer takes_________as input and produces a stream of_______as output.
a) Source program, tokens b)Token, source program
c) Either A and B d) None of the above
4. What is the function of a loader?
5. What do you mean by syntax tree?
6. The process of assigning load addresses to the various parts of the program and adjusting
the code and data in the program to reflect the assigned addresses is called _______.
a) Assembly b) Parsing c) Relocation d) Symbol resolution
7. What are the phases of Analysis of a source program?
8. What is a compiler?
9. What are the phases of synthesis of a source program?
10. Define pattern.
11. What are the advantages of Assembly language over machine language?
12. What is a preprocessor?
13. The _________ phase converts an intermediate code into an optimized code that takes
lesser space and lesser time to execute.
a) code optimization b) syntax directed translation
c) code generation d) intermediate code generation
14. ______________is invoked whenever any fault occurs in the compilation process of
source program
a) syntax analyzer b) code generator c)Error handler d) Lexical analyzer
15. Define Interpreter.
16. What are the common operations in languages?
17. Define lexeme.
18. What do you mean by assembler?
19. What is Symbol table?
20. Define regular definition.
TWO MARK QUESTIONS