Page 1038 - AP Computer Science A, 7th edition
P. 1038

33. (B) For the method call isThere(mat, 2, 2, “$”), the code counts how many times “$” appears in row 2 and how many times in column 2. The method returns true only if count == SIZE for either the row or column pass (i.e., the whole of row 2 or the whole of column 2 contains the symbol “$”). This eliminates choices I and II.


































































































   1036   1037   1038   1039   1040