midterm_001

midterm_001 - CS 352 Compilers: Principles and Practice...

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

View Full Document Right Arrow Icon
CS 352 – Compilers: Principles and Practice Mid-term Examination, 10/13/10 Instructions: Read carefully through the whole exam first and plan your time. Note the relative weight of each question and part (as a percentage of the score for the whole exam). The total points is 100 (your grade will be the percentage of your answers that are correct). This exam is closed book, closed notes . You may not refer to any book or other materials. You have 60 minutes to complete three (3) questions. Write your answers on this paper (use both sides if necessary). Name: Student Number: Signature:
Background image of page 1

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

View Full DocumentRight Arrow Icon
1. (Scanning; 40%) Consider scanning literals for representing amounts of money in dollars (and fractions). Such a literal will start with a $, continue with an integer part, with an optional fraction part, and an optional unit (B, M, or K, for billion, million, or thousand). The integer part can consist of a single 0, or a non-zero digit followed by zero or more digits (0–9). The integer part may optionally
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/23/2012 for the course CS 352 taught by Professor Staff during the Fall '08 term at Purdue.

Page1 / 4

midterm_001 - CS 352 Compilers: Principles and Practice...

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

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