CCS 305
CCS 305
CCS 305
MAIN CAMPUS
INSTRUCTIONS:
• Answer ALL questions in SECTION A and any other TWO from SECTION B
• Write your registration number on all sheets of the answer book used.
• Use a NEW PAGE FOR EVERY QUESTION attempted, and indicate number
on the space provided on the page of the answer sheet.
• Fasten together all loose answer sheets used.
• Mobile phones and PDAs are NOT allowed in the examination room.
2
SECTION B: ANSWER ANY TWO QUESTIONS
..
i) Derive a top-down rightmost derivation of G
(3 marks)
H), Use a table containinq stack values, input string and action "
values to show the steps performed when analyzing the input string: i + i * i(i)
(8 marks)
"
iii) Construct a DFA recognizing L, either by deriving from the
NFA of question (ii), or by constructing one directly.
(6 marks),.