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) Explain what is meant by top-down parsing technique (2 marks)
b) State the difficulties in top-down parsing (6 marks)
c) Analyse the errors which can be detected during lexical analysis. (6 marks)
d) What is meant by the "front end" of a compiler? (2 marks)
e) List the phases that constitute the front end of a compiler. (4 marks)
f) State two (2) of the uses of formal languages (2 mark)
2a) ) With the aid of a suitable diagram, clearly state the use of T-diagrams (4 marks)
b) Discuss any five (5) qualities of compilers (5 marks)
c) How are the following represented?
i) Grammar symbols (1 mark)
ii) strings of terminals (1 mark)
iii) productions (1 mark)
3a) ) List the steps to implement Lex. (5 marks)
b) Explain the process of creating a lexical processor with Lex (4 marks)
c) Identify any three (3) roles of the Parser (3 marks)
4a) State the constituents of a Context-Free Grammar (CFG) (4 marks)
b) State the usefulness of CFGs. (2 marks)
c) Write short notes on the following:
(i) Operator precedence parser (2 marks)
(ii) operator Grammar (2 marks)
(iii) operator precedence e Grammar (2 marks)
5a) Express the operator precedence parser algorithm. (9 marks)
b) Briefly describe a “parser”. (3 marks)
6a) Suppose we have a grammar G:
E → E + T
E → T
T → T*F
T → F
F → (E)
F → a
i) Find the left parse of the sentence a *(a + a) stating the production rule applied at each stage. (8¼ mark)
ii) State the sequence of derivation. (¼ mark)
b) Write short notes on Bottom-up Parsing. (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 ...