CS 3304
Homework Assignment 2

Given: July 9, 1997 Due: July 15, 1997

The point value of each problem is shown in [ ]. The assignment must be received by the beginning of class on July 15, 1997. See syllabus for late policy.

When the problem asks for an explanation, give a clearly written justification of your answer.

[8] 1.

Chapter 4, Problem 8.



[8] 2.

Chapter 4, Problem 13. Note that this problem assumes dynamic scoping.



[6] 3.

Chapter 5, Problem 13.



[8] 4.

Chapter 5, Problem 14.



[6] 5.

Refer to the type declarations on page 225. These types are to be implemented on a computer with a 32-bit word. Suppose that a value of enumerated type is represented in one byte. Suppose that an integer value is represented in a word and must be aligned on a word boundary. Suppose that a real value is represented in two words and must be aligned on a word boundary.

How many bytes should be allocated for a variable of type object? Explain.



[8] 6.

Chapter 6, Problem 10.



[8] 7.

Chapter 6, Problem 12.



[8] 8.

Chapter 6, Problem 21. Explain.



About this document ...

This document was generated using the LaTeX2HTML translator Version 96.1 (Feb 5, 1996) Copyright © 1993, 1994, 1995, 1996, Nikos Drakos, Computer Based Learning Unit, University of Leeds.

The command line arguments were:
latex2html -split 0 -t CS 3304 Homework Assignment 2 homework2.

The translation was initiated by cs3304sm class account on Tue Jul 8 15:22:10 EDT 1997


cs3304sm class account
Tue Jul 8 15:22:10 EDT 1997