Page 64 - AP Computer Science A, 7th edition
P. 64
Which best describes what method findSomething does? Method findSomething returns true only if
(A) Arrays a and b contain identical elements in the same order.
(B) Arrays a and b contain identical elements in reverse order.
(C) Arrays a and b are permutations of each other.
(D) Array a contains at least one element that is also in b.
(E) Every element of array a is also in b, and every element of array b is also in a.
36. Consider a program that has a two-dimensional array mat of int values. The program has several methods that change mat by reflecting elements of mat across a mirror placed symmetrically on the matrix. Here are five such methods: