|CIT 591 Sixth Quiz
Fall 2001, Dave Matuszek
All answers must be kept brief. Points may be taken off for unnecessarily long
or detailed answers.
- In order to write objects to a file, what interface must those objects implement?
- What kind of memory (or "knowledge") does a pure state machine
use to keep track of the current state of the computation?
- If a pure state machine does not produce any output, how can you get any
result from running it?
- What control structures would you use in order to implement a state machine
- What does the String method
- What is the value of the expression
- When should you use a
StringBuffer instead of a
- What happens when the capacity of a
StringBuffer is exceeded?
- What are the two ways of creating Threads?
- What are the four states of a Thread? (Just name them, don't describe them.)
- When you create and start a new Thread, which method does the new Thread
- What keyword is used to prevent more than one Thread from accessing an object
at the same time?
- Name four of the five Stack methods.