exam1-2007

Exam1 2007

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: COP5621 Compiler Construction Exam 1 - Spring 2007 Name: (Please print) 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 forward declarations. (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.

Ask a homework question - tutors are online