All homework assignments will be done this way: After reading the required materials, answer the homework questions (type them in your favorite word processor and convert the file to PDF), and upload the PDF file with your answers to Carmen before the start of class on the due date. Please note the policies on homework grading (part of the first reading assignment).
- Add a recent, clear photo of yourself to both your Zoom profile and to your Carmen profile. (Nothing to turn in for this question)
- In CSE 2221, what constitutes "going over the line" with regard to acceptable collaboration vs. academic misconduct?
- Will your homework grade be better if you look up and copy the answers rather than thinking about the questions and providing your own answers?
- What are the two most important benefits of the Java language?
- What's an algorithm?
- What two main categories of errors can you expect to encounter when programming?
- (These are from Self Check questions 15-19 in Section 1.6
of Java
for Everyone.)
- Suppose you omit the "" characters around Hello, World! from the HelloPrinter.java program. Is this a compile-time error or a run-time error?
- Suppose you change println to printline in the HelloPrinter.java program. Is this a compile-time error or a run-time error?
- Suppose you change main to hello in the HelloPrinter.java program. Is this a compile-time error or a run-time error?
- When you used your computer, you may have experienced a program that "crashed" (quit spontaneously) or "hung" (failed to respond to your input). Is that behavior a compile-time error or a run-time error?
- Why can’t you test a program for run-time errors when it has compile-time errors?
- Show what this program prints. Be exact and complete. Can
you explain the behavior of each print statement?
public class Test { public static void main(String[] args) { System.out.println("39 + 3"); System.out.println(39 + 3); System.out.println("39" + 3); } }
Additional Questions
Some homework assignments will have "additional questions". These questions are not required as part of your homework submission. However, you will benefit from thinking about them and you may turn them in for feedback. They may be related to non-required readings.
- Acronym Attack! Software Engineers love to use TLAs
(three letter acronyms) to compress complex ideas into small
efficient packets. If you want to keep up, you need to learn the
code. For each of the following, expand the acronym and give a
brief definition.
- API
- CPU
- IBM
- IDE
- JDK
- JVM
- GUI
- LAN
- MAC (the acronym, often followed by "address"; not a Macintosh)
- RSS
- UUT
- XML