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

(a) Which of the following requires that an array be sorted before it is execute

ID: 656068 • Letter: #

Question

(a) Which of the following requires that an array be sorted before it is executed?
A. binary search B. array copying C. selection sort D. sequential search


(b) Which term best describes a method that does not return a value?
A. helper method B. unimplemented method C. overloaded method
D. void method


(c) Which of the following is NOT a part of a method signature?
A. return type B. name C. parameter type(s) D. parameter name(s)


(d) Which term best describes the location of an element in an array?
A. charAt B. order C. length D. index


(e) Which operator is used to access an element in an array?
A. ( ) B. [ ] C. . (dot operator) D. =


(f) Which term best describes a variable that's declared within the body of a method?
A. local variable B. argument C. parameter D. index variable


(g) Which of the following is NOT a bene t of partitioning a program into separate methods?
A. runs faster B. improves readability C. improves reuse
D. easier to maintain


(h) Which of the following keywords is used to create an array?
A. create B. array C. new D. int[ ]


(i) Which term best describes when two or more methods in the same class use the same name?
A. encapsulation B. void methods C. overloading D. helper methods


(j) Which term best describes the region of code where a variable may be used?
A. initialization B. declaration C. scope D. method

Explanation / Answer

1. B. array copying
2.D. void method
3.D. parameter name(s)
4.D. index
5.B. [ ]
6.A. local variable
7.C. improves reuse
8.C. overloading
9.D. method