|
Second Summer 2002
|
Chapter One Warmups: Some Very High-level Questions.
- Explain the difference between using a computer program and programming a computer.
- What distinguishes a computer from a typical household appliance?
- Which parts of the computer can store program code? Which can store user data?
- Which parts of the computer serve to give information to the user? Which parts take user input?
- What is the Java virtual machine?
- What is an applet?
- On your own computer find the exact location (folder or directory name) of
- The sample file
Hello.java which you wrote with the editor
- The Java interpreter
java.exe
- The library file
rt.jar that contains the runtime library
- Explain the special role of the
\ escape character in Java character strings.
- How do you discover syntax errors? How do you discover logic errors?
- Write an algorithm to settle the following question: a bank account starts out
with $10,000. Interest is compounded at the end of every month at 6 percent per year
(0.5 percent per month). At the beginning of every month, $500 is withdrawn to meet
college expenses after the interest has been credited. After how many years is the
account depleted?
- Explain the difference between an object and an object reference.
- Explain the difference between an object and a class.
- Explain the difference between an object and a method.
Last updated: Jul 28, 2002 by Adrian German for A201