This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: CS 352 – Compilers: Principles and Practice Mid-term Examination, 3/11/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 75 minutes to complete all three (3) questions. Write your answers on this paper (use both sides if necessary). Name: Student Number: Signature: 1. (Scanning; 25%) Certain assemblers form their integer literals in the following way. Binary literals comprise one or more binary digits ( , 1 ) followed by the letter B . Octal literals consist of one or more octal digits ( through 7 ) followed by the letter Q ( O looks too much like ). Hexadecimal literals comprise at least one decimal digit ( through 9 ), followed by zero or more hexadecimal digits ( through 9 and A through F ) followed by the letter H . Decimal literals consist of at least one decimal digit optionally followed by the letter D ....
View Full 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.
- Fall '08