This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Multiple Choice 1. When a program is finished using a file, it should do this: (Pg. 244) a. Erase the file b. Close the file c. Throw an exception d. Reset the read position 2. This keyword creates an object: (Pg. 182) a. create b. object c. new d. construct 3. This type of method does not return a value: (Pg. 291) a. null b. void c. Empty d. Anonymous 4. When an exception is generated, it is said to have been: (Pg. 804) a. built b. thrown c. caught d. killed 5. Two or more methods in a class may have the same name, as long as this is different: (Pg. 356) a. their return values b. their access specifier c. their parameter lists d. their memory address 6. This array field holds the number of elements that the array has: (Pg. 538) a. size b. elements c. length d. width 7. Each element of an array is accessed by a number known as a(n): (Pg. 537) a. subscript b. size delarator c. address d. specifier 8. When an array is passed as an argument to a method, this is actually passed: (Pg. 604, modified) a. a copy of the array b. the name of the array c. a reference to the array d. None of these. You cannot pass an array....
View Full Document
- Spring '09
- Computer Science