For More Quiz Questions click here to download Global Quiz on Google PlayStore

NATIONAL OPEN UNIVERSITY OF NIGERIA

UNIVERSITY VILLAGE, PLOT 91, CASDASTRAL ZONE, NNAMDI AZIKIWE EXPRESS WAY, JABI, ABUJA.
FACULTY OF SCIENCES
OCTOBER 2019 EXAMINATION

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)


For More Quiz Questions click here to download Global Quiz on Google PlayStore


Select NOUN Past Questions & Answers by Faculties

Sciences

National Open University of Nigeria (NOUN) Faculty of Sciences Past Questions and Answers.

Education

National Open University of Nigeria (NOUN) Faculty of Education Past Questions and Answers.

Arts & Social Sciences

National Open University of Nigeria (NOUN) Faculty of Arts and Social Sciences Past Questions and Answers.

Law

National Open University of Nigeria (NOUN) Faculty of Law Past Questions and Answers.

Management Sciences

National Open University of Nigeria (NOUN) Faculty of Management Sciences Past Questions and Answers.

Health Sciences

National Open University of Nigeria (NOUN) Faculty of Health Sciences Past Questions and Answers.

Agriculture Sciences

National Open University of Nigeria (NOUN) Faculty of Agricultural Sciences Past Questions and Answers.

Select Project Topics & Materials by Categories

Accounting

Universities, Polytechnic's and Colleges of Education Accounting Project Topics and Materials.

Biology

Universities, Polytechnic's and Colleges of Education Biology Project Topics and Materials.

Business Education

Universities, Polytechnic's and Colleges of Education Business Education Project Topics and Materials.

Chemistry

Universities, Polytechnic's and Colleges of Education Chemistry Project Topics and Materials.

Computer Science

Universities, Polytechnic's and Colleges of Education Computer Science Project Topics and Materials.

Criminology & Security

Universities, Polytechnic's and Colleges of Education Criminology & Security Project Topics and Materials.

Economics

Universities, Polytechnic's and Colleges of Education Economics Project Topics and Materials.

Education

Universities, Polytechnic's and Colleges of Education Education Project Topics and Materials.

English/Linguistic

Universities, Polytechnic's and Colleges of Education English/Linguistic Project Topics and Materials.

Entrepreneurship

Universities, Polytechnic's and Colleges of Education Entrepreneurship Project Topics and Materials.

Environmental Science

Universities, Polytechnic's and Colleges of Education Environmental Science Project Topics and Materials.

Law

Universities, Polytechnic's and Colleges of Education Law Project Topics and Materials.

Marketing

Universities, Polytechnic's and Colleges of Education Marketing Project Topics and Materials.

Physics

Universities, Polytechnic's and Colleges of Education Physics Project Topics and Materials.

Political Science

Universities, Polytechnic's and Colleges of Education Political Science Project Topics and Materials.

Public Administration

Universities, Polytechnic's and Colleges of Education Public Administration Project Topics and Materials.

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...

Facebook posts