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 CODE: CIT445
COURSE TITLE: Principles and Techniques of Compilers
CREDIT: 3 Units
TIME ALLOWED: 2½ Hours
INSTRUCTION: Answer Question 1 and any other FOUR (4) Questions
1a) Define formal language (3 marks)
b) State three areas of application of formal languages (3 marks)
2a) Briefly describe the operation performed by the shift-reduce parser (6 marks)
b) Given the context-free grammar G below:
G: E E + E
E E * E
E (E)
E id
State the steps performed by the shift-reduce parser when analyzing the input string:
id1 + id2 * id3 (6 marks)
3a) List the common techniques for building tables for an “LR” parser stating the characteristics of each? ( 6½ marks)
b) Consider the grammar,
G: E → E + T | T
T → T*F | F
F → (E) | i
What is the augmented grammar for this grammar. (2 marks)
c) Explain what is meant by the term Viable Prefix? (3½ marks)
4) Consider the grammar G below:
G: E ® E + T / T
T ® T * F / F
F ® (E) / i
i) Generate the non-left recursive version of the grammar (5 marks)
ii) Find FOLLOW of all the non-terminal symbols in the non-left recursive version of the grammar (7 marks)
5a) Given the grammar G with the following production rules, S → a | aS | bS, determine whether the string aababbba can be generated by the grammar(6 marks)
b) Enumerate any three of the errors which can be detected during lexical analysis (6 marks)
6) Consider the grammar,
G: S → a | aS | bS
b) Construct an NFA whose states are the LR(0) items from (a) above. (3 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 ...