Unformatted text preview: COP5621 Compiler Construction Exam 1 - Spring 2007
Put the answers on these sheets. Use additional sheets when necessary. You can collect 100 points
in total for this exam.
1. Why are “forward declarations” needed in Pascal programs (or similarly, when do we require
function prototypes in C)? (mark one) (4 points)
(a) Programmers often make mistakes, so redundant declarations are useful to detect typing errors early.
(b) Pascal and C are designed for single-pass compilers.
(c) The compiler makes multiple passes over the input to check all declarations, including
(d) To make the programming language strongly...
View Full Document
This note was uploaded on 02/01/2012 for the course COP 5621 taught by Professor Vanengelen during the Spring '11 term at FSU.
- Spring '11