Week 1 Review Quiz

1. What command compiles a Java program from the terminal after you finish writing it?

2. Which command do you use to run the compiled Java class?

3. Write the Java statement that prints “Hello World!” to the screen.

4. In a Robocode robot, which method is typically the main loop that dictates robot behavior?

5. Which event handler method is triggered when your robot detects another robot?

6. Which Java type would you use to store a decimal value like 3.14 in your robot code?

7. Name one loop construct in Java that you could use to repeat a block of code.

8. What is the purpose of using System.out.println statements while programming your robot?

9. During Day 5, what is one reason you hold a friendly tournament?