Download presentation
Presentation is loading. Please wait.
1
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.
2
Title the quiz as shown below The quiz starts in ONE minute.
Name Period Date Review Quiz 08 1. 9. 8. EC.
3
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()
4
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()
5
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()
6
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()
7
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()
8
(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: (d) Hello (e) Error
9
(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: (d) Hello (e) Error
10
(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: (d) Hello (e) Error
11
(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: (d) Hello (e) Error
12
(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: (d) Hello (e) Error
13
(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: (d) Hello (e) Error
14
Question 12 What is the output of this program? (a) Name: Tom
Savings: Name: Savings: 0.0 (b) Name: Tom Name: George Savings: (c) Name: Name: Sue Savings: (d) Name: Tom Error
15
Question 13 What is the output of this program? (a) Name: Tom
Savings: Name: Savings: 0.0 (b) Name: Tom Name: George Savings: (c) Name: Name: Sue Savings: (d) Name: Tom Error
16
Question 14 What is the output of this program? (a) Name: Tom
Savings: Name: Savings: 0.0 (b) Name: Tom Name: George Savings: (c) Name: Name: Sue Savings: (d) Name: Tom Error
17
Question 15 What is the output of this program? (a) Name: Tom
Savings: Name: Savings: 0.0 (b) Name: Tom Name: George Savings: (c) Name: Name: Sue Savings: (d) Name: Tom Error
18
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.