sampleMt1 - Name: Code*: (*Choose a code with 3 digits and...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Name: Code*: (*Choose a code with 3 digits and 3 letters in it; otherwise I cannot post your grades on the newsgroup.) CIS 755 Sample Mid-term #1 (Closed book, closed notes, closed neighbor.) (A single “cheat sheet” is allowed; if you use one, write your name on it, and turn it in with your exam.) There are 5 questions, each worth 20 points. The questions are not all equally difficult but none should take you more than about 7 or 8 minutes to answer. Please keep your answers brief and to the point. Rambling, irrelevant discussions may be penalized. If a question (or part thereof) does not make sense, ask me for clarification; if it still does not make sense, say so, and explain why it does not make sense. 1. Suppose B is a BNF grammar and AB an attribute grammar built on B (i.e., by adding appropriate attributes, evaluation rules, and conditions to B ). Answer the following questions: a. If B is ambiguous can AB be unambiguous? b. If
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

sampleMt1 - Name: Code*: (*Choose a code with 3 digits and...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online