Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. You can write as many constructors for a class as you want, as long as they a

ID: 3646700 • Letter: 1

Question

1. You can write as many constructors for a class as you want, as long as they all have different ____ lists. A) object B) data field C) method D) parameter

2. When a main() method needs to use another method, it calls, or invokes it. A) True B) False <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?>

3. A parent class is the same thing as a base class. A) True B) False

4. ____ is the process of creating a new, derived class from a base class.

A) Accessibility B) Encapsulation C) Inheritance D) Polymorphism

5. The memory location known as the ____ is where the computer stores the list of method locations to which the system must return. A) method stack B) location stack
C) call stack D) store location

6. A child class contains all the data fields and ____ of its parent. A) parameters
B) classes C) methods D) procedures

7. When a data field is private, it is said to be ____ to any class other than the one in which it is defined. A) uninheritable B) implicit C) unreachable D) inaccessible

8. A catch block consists of four different elements: the keyword catch, followed by parentheses that contain an exception type and identifier, statements that take action to handle the error condition, an endcatch statement, and a return statement.A) True B) False

9. A(n) ____ statement indicates the end of the catch block in the pseudocode.

A) finalcatch B) finally C) endcatch D) stop

Explanation / Answer

1. You can write as many constructors for a class as you want, as long as they all have different ____ lists. D) parameter 2. When a main() method needs to use another method, it calls, or invokes it. A) True 3. A parent class is the same thing as a base class. B) False 4. ____ is the process of creating a new, derived class from a base class. A) Accessibility 5. The memory location known as the ____ is where the computer stores the list of method locations to which the system must return. C) call stack 6. A child class contains all the data fields and ____ of its parent. C) methods 7. When a data field is private, it is said to be ____ to any class other than the one in which it is defined. B) implicit 8. A catch block consists of four different elements: the keyword catch, followed by parentheses that contain an exception type and identifier, statements that take action to handle the error condition, an endcatch statement, and a return statement.A) True 9. A(n) ____ statement indicates the end of the catch block in the pseudocode. A) finalcatch \