Tuesday Review Quiz

Take this quiz to review yesterday's material. The quiz is open-book, open-note and open-neighbor (feel free to work together)!

For the questions that involve coding, you can just write your answers on a piece of paper -- you don't need to type them into the computer, compile and run them (unless you really want to).

  1. Write a for loop that counts from 100 to 0 backwards by fives and prints the results to the console.
  2. What is the difference between the & and && operators?
  3. Define the notion of an object. What is an object made up of?
  4. Explain what the heap and the stack are in the Java Virtual Machine.