1.You can write as many constructors for a class as you want, as long as they al
ID: 3536665 • 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. A ____ is a segment of code that can handle an exception that might be thrown by the try block that precedes it. A) catch method B) throw block C) catch block D) throw statement 3. The call stack is where the computer stores the list of exceptions. A) True B) False 4. A constructor may require ____. A) parameters B) methods C) objects D) inheritance 5. Class diagrams are a type of ____ diagram. A) Unified Illustration Language B) Unified Modeling Language C) Object-Oriented Modeling Language D) Unified Pseudocode Language 6. Methods are sometimes called ____. A) segments B) modules C) classes D) routines 7. A ____ reference is an automatically created variable that holds the address of an object and passes it to an instance method whenever the method is called. A) key B) public C) that D) this 8. An instance method or constructor may be overloaded by providing the same name and ____ argument list. A) a different B) the same C) a larger D) a smaller 9. An object is a category of things. A) True B) False 10. Overloaded methods have the same name and parameter lists. A) True B) False 11. Programmers refer to hidden implementation details as existing in a ____. A) white box B) white hole C) black box D) black hole 12. The ability to use methods without knowing the details of their contents is a feature of ____. A) abstraction B) encapsulation C) inheritance D) construction 13. What is one item that must be included in a methodExplanation / Answer
1)D
2)A
3)B
4)A
5)B
6)B
7)D
8)A
9)B
10)B
11)C
12)A
13)A
14)C
15)A
16)A
17)B
18)A
19)A
20)
21)C
22)C
23)B
24)B
25)A
26)C
27)A
28)A
29)B
30)A
31)B
32)D
33)B
34)
35)
36)
37)B
38)A
39)A
40)C
41)A
42)A
43)A
44)A
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.