Question 1
Which of the following code displays the area of a circle if the radius is positive?
◦ if (radius <= 0) System.out.println(radius * radius * 3.14159);
◦ if (radius != 0) System.out.println(radius * radius * 3.14159);
◦ if (radius >= 0) System.out.println(radius * radius * 3.14159);
◦ if (radius > 0) System.out.println(radius * radius * 3.14159);
Question 2
Which of the following is a possible output from invoking Math.random()?
◦ 1.0
◦ 0.5
◦ 3.43
◦ 0.0