Verityprep
Question Bank

AP® Computer Science A Multiple Choice Questions

Work through AP Computer Science A multiple-choice questions unit by unit, then check each answer against a worked solution.

Free · no sign-up Open questions need no account. Sign up or log in to open the rest.

Questions 2,091–2,100 of 2,811
  1. 2091
  2. 2092
  3. 2093
  4. 2094
  5. 2095
  6. 2096
  7. 2097
  8. 2098
  9. 2099
  10. 2100

Question 2091

Multiple choice Unit 4: Data Collections
Consider a class MatrixStuff that has a private instance variable. private int[][] mat; Refer to method alter below that occurs in the MatrixStuff class. (The…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2092

Multiple choice Unit 4: Data Collections
This question refers to the following method. public static boolean isThere(String[][] mat, int row, int col, String symbol) { boolean yes; int i, count = 0;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2093

Multiple choice Unit 4: Data Collections
The method changeNegs below should replace every occurrence of a negative integer in its matrix parameter with 0. /** Replaces all negative values in mat with…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2094

Multiple choice Unit 4: Data Collections
A two-dimensional array rainfall that contains double values will be used to represent the daily rainfall for a given year. In this scheme, rainfall[month][day]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2095

Multiple choice Unit 4: Data Collections
This question is based on the Point class below. public class Point { /** The coordinates. */ private int x; private int y; public Point (int xValue, int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2096

Multiple choice Unit 4: Data Collections
A Tic-Tac-Toe board contains X, O or a blank. Each row of its string representation starts and ends with a vertical bar, with no internal separators, followed…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2097

Multiple choice Unit 4: Data Collections
Which of the following statements about recursion are true? I Every recursive algorithm can be written iteratively. II Tail recursion is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2098

Multiple choice Unit 4: Data Collections
Which of the following, when used as the /* body */ of method sum, will enable that method to compute 1 + 2 + ... + n correctly for any \(n \gt 0\)? / * returns…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2099

Multiple choice Unit 4: Data Collections
Refer to the method stringRecur. public void stringRecur(String s) { if (s.length() < 15)…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2100

Multiple choice Unit 4: Data Collections
Refer to method strRecur. public void strRecur(String s) { if (s.length() < 15) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2,091 of 2,811
Page 210 of 282