PreAP Computer Science Review Quiz 08 Key Take out a piece of paper and PEN. The quiz starts one minute after the tardy bell rings. You will have 45 seconds per question.
Title the quiz as shown below The quiz starts in ONE minute. Name Period Date Review Quiz 08 1. 9. 2. 10. 3. 11. 4. 12. 5. 13. 6. 14. 7. 15. 8. EC.
Question 1 Which of these is the heading of a void class method? (a) public static void hello() (b) public void hello() (c) public static int hello() (d) public double hello() (e) public Hello()
Question 2 Which of these is the heading of a return class method? (a) public static void hello() (b) public void hello() (c) public static int hello() (d) public double hello() (e) public Hello()
Question 3 Which of these is the heading of a void object method? (a) public static void hello() (b) public void hello() (c) public static int hello() (d) public double hello() (e) public Hello()
Question 4 Which of these is the heading of a return object method? (a) public static void hello() (b) public void hello() (c) public static int hello() (d) public double hello() (e) public Hello()
Question 5 Which of these is the heading of a constructor for the Hello class? (a) public static void hello() (b) public void hello() (c) public static int hello() (d) public double hello() (e) public Hello()
(a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello Question 6 What is the output of this program? (a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello (e) Error
(a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello Question 7 What is the output of this program? (a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello (e) Error
(a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello Question 8 What is the output of this program? (a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello (e) Error
(a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello Question 9 What is the output of this program? (a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello (e) Error
(a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello Question 10 What is the output of this program? (a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello (e) Error
(a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello Question 11 What is the output of this program? (a) Hello (b) Hello Savings: 0.0 (c) Hello Savings: 1000.0 (d) Hello (e) Error
Question 12 What is the output of this program? (a) Name: Tom Savings: 1000.0 Name: Savings: 0.0 (b) Name: Tom Name: George Savings: 2500000.0 (c) Name: Name: Sue Savings: 1800.0 (d) Name: Tom Error
Question 13 What is the output of this program? (a) Name: Tom Savings: 1000.0 Name: Savings: 0.0 (b) Name: Tom Name: George Savings: 2500000.0 (c) Name: Name: Sue Savings: 1800.0 (d) Name: Tom Error
Question 14 What is the output of this program? (a) Name: Tom Savings: 1000.0 Name: Savings: 0.0 (b) Name: Tom Name: George Savings: 2500000.0 (c) Name: Name: Sue Savings: 1800.0 (d) Name: Tom Error
Question 15 What is the output of this program? (a) Name: Tom Savings: 1000.0 Name: Savings: 0.0 (b) Name: Tom Name: George Savings: 2500000.0 (c) Name: Name: Sue Savings: 1800.0 (d) Name: Tom Error
Extra Credit You need to edit a specific method in your class. This method is a helper, class method which does not return a value. You are going to use your text editor’s find feature to look for the method. What exact words would you search for? public static void public static return private static void private static return public non-static void public non-static return private non-static void private non-static return