Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

National College of Business Administration and Economics

Department of Computer Sciences


BS (CS, SE, IT)
Compiler Construction
Assignment No. 1 Fall 2023
Name: _____________________________________________ Roll No. ______________
Total Marks: 20

1. What is the primary function of a compiler in software development?


2. Name the phases involved in the compilation process.
3. How does a compiler differ from an interpreter?
4. Define what a language processing system encompasses.
5. Differentiate between a compiler and an interpreter in terms of code execution.
6. What roles do the linker and loader play in a language processing system?
7. Explain the concept of a lexeme in lexical analysis.
8. How are regular expressions used in the context of pattern matching for tokens?
9. What is the primary role of a lexer in the process of tokenization?
10. Define semantic attributes in the context of tokens.
11. Why is attaching attributes to tokens important in compilation?
12. In which phase of the compiler are semantic attributes assigned to tokens?
13. What is the purpose of a symbol table in a compiler?
14. How does a symbol table aid in the compilation process?
15. Explain the role of an error handler in a compiler.

You might also like