MC logo

Practice Problems

^  CSc 404 Home Page

Here is a selection of practice problems to help your understanding. These are not assigned as homework, and I don't expect you to hand them in. We will discuss some in class, and you are always free to ask me about any of them.

Chapter 1 Text problems, starting on p. 42: 4, 6, 9.
Chapter 2 Text problems, starting on p. 67: 1, 5, 6, 7. Solve 5 and 6 using Java. For 7, also consider any languages that should be added.

Describe the binding times of the following language features:

  1. The binding of a set of methods to a class name in C++.
  2. The same in Java.
  3. The binding of a function name to its code body in plain C.
  4. The binding of a Java method name to its body of code.
  5. The binding of a Tom's Lisp function name to its expression.
What effect does the C++ virtual keyword have on binding time when applied to a method?
Chapter 3 Text problems, starting on p. 110: 1–3, 5–7, 9, 11
Derivation Problem
Chapter 5 Text problems, starting on p. 196: 1, 3, 4–6, 10
Chapter 6 Text problems, starting on p. 257: 1, 4, 5, 11, 12 (use C structs), 19, 24.
Dope Vector Problem
Chapter 7 Text problems, starting on p. 291: 5, 8, 9.