How to login to NOUN Elearn Portal
You can now use you matric number to login as your username and password in a lowercase.
https://elearn.nouedu2.net/login/
Note that you are to change your passw...
Course: CIT 445 – Principles and Techniques of Compilers
Time Allowed: 3 Hours
Instructions: Answer Question 1 and three (4) other questions
Q1 a. Define the following terms.
b. Enumerate three components that make up the syntax of grammars (6 marks)
c. List two types of grammars. (2 marks)
Q2 a. Given the grammar G with following production rules, S → a | aS | bS, determine whether the following strings can be generated by the grammar.
b. With the aid of a diagram describe the levels of grammar as described by the Chomsky hierarchy. (8 marks)
c. Explain one of the uses of formal languages. (2 marks)
Q3. a. In the context of formal language describe the following terms.
b. Define format Languages. (4 marks)
c. What is the relationship between grammar and language. (4 marks)
Q4. a. Define the term compiler and state its importance in the programming world. (4 marks)
b. Distinguish between a translator, compiler and an interpreter. (6marks)
c. Outline some specific knowledge require for building a compiler. (4 marks)
Q5. a. List and explain any three (3) components of a compiler. (6 marks)
b. Explain why the error handler is important in a compiler. (4 marks)
c. Enumerate the functions performed by the lexical analyser. (4 marks)
Q6. a. Define context-free grammars (CFGs). (4 marks)
b. Explain the role of the parser in (CFGs). (4 marks)
c. Discuss the concept of parse tress. (6 marks)
Q7. a. Briefly itemise and describe the different stages at which errors might occur during compilation. (4 marks)
b. Outline the different ways that error of division by 0 can be reported. (4 marks)
c. Distinguish between run-time errors and compile time errors. (4 marks)
d. Briefly describe some ways to check for ‘undefined. (2 marks)
Select NOUN Past Questions & Answers by Faculties
National Open University of Nigeria (NOUN) Faculty of Sciences Past Questions and Answers.
National Open University of Nigeria (NOUN) Faculty of Education Past Questions and Answers.
National Open University of Nigeria (NOUN) Faculty of Arts and Social Sciences Past Questions and Answers.
National Open University of Nigeria (NOUN) Faculty of Law Past Questions and Answers.
National Open University of Nigeria (NOUN) Faculty of Management Sciences Past Questions and Answers.
National Open University of Nigeria (NOUN) Faculty of Health Sciences Past Questions and Answers.
National Open University of Nigeria (NOUN) Faculty of Agricultural Sciences Past Questions and Answers.
Select Project Topics & Materials by Categories
Universities, Polytechnic's and Colleges of Education Accounting Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Biology Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Business Education Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Chemistry Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Computer Science Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Criminology & Security Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Economics Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Education Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education English/Linguistic Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Entrepreneurship Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Environmental Science Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Law Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Marketing Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Physics Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Political Science Project Topics and Materials.
Universities, Polytechnic's and Colleges of Education Public Administration Project Topics and Materials.
You can now use you matric number to login as your username and password in a lowercase.
https://elearn.nouedu2.net/login/
Note that you are to change your passw...
The Flemish Ministry of Education and Training awards scholarships to highly talented international students who want to study a master's programme at a Flemish university, a school of arts or ...
Universities of the Coimbra Group offer short-term visits (generally 1 to maximum 3 months) to young African researchers from higher education institutions from Sub-Saharan Africa. The main aim of ...