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
SEPTEMBER 2020 EXAMINATION

CIT 445 – Principles & Techniques of Compilers.

Credit: 3 units

TIME ALLOWED: 2½ Hours

INSTRUCTION: Answer Question 1 and any other FOUR (4)

 

Questions

1a) Outline three (3) typical questions asked about formalisms. (3mks)

1b) Suppose L1 and L2 are languages over some common alphabet; state two (2) standard operations that can be performed on the languages. (4mks)

1c) Identify three (3) types of Intermediate Representation (3mks)

1d) Why Do We Need Translators? (3mks)

1e) Outline the operations of the shift-reduce parser (4mks)

1f) Define finite automata. (3mks)

1g) Illustrate two properties entailed in using an intermediate language representation. (2mks)

 

2a) Examine the context-free grammar G with the productions

E →E + E | E * E | ( E ) | id

Generate possible leftmost derivations for id + id * id (10mks)

2b) Mention the two (2) ways of resolving collision ? (2mks)

 

3a) Consider the context-free grammar G with the productions

E →E + T | T

T →T * F | F

F →(E) | id

Generate the following:

i) Terminal symbols (3mks)

ii) Nonterminal symbols (3mks)

iii) Start symbol. (2mks)

3b) Outline the algorithm for constructing precedence functions (4mks)

 

4a) List and explain the components of the structure of a compiler(8mks)

4b) Identify the attributes of symbol table (4 mks)

 

5a) C onstruct the Operator precedence parsing algorithm (7mks)

5b) Explain the need for lexical analyser. (5mks)

 

6a) Suppose we have a Grammar G:

E →E + T

E →T

T →T * F

T → F

F → (E)

F → a

Find the left parse of the sentence a* (a+a) (9mks)

6b) What is Type-3: Regular Grammars (3mks)


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