Verityprep
Question Bank · Unit 4

AP® Computer Science A Data Collections Practice Questions

Work through AP Computer Science A practice questions on Data Collections, 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.

Subtopic: 2D Arrays Clear filter

Questions 21–30 of 195
  1. 21
  2. 22
  3. 23
  4. 24
  5. 25
  6. 26
  7. 27
  8. 28
  9. 29
  10. 30

Question 21

Multiple choice 2D Arrays
Given the following: double[][] something = { {2.5, 6.8, 8.3, 2.3, 0.0}, {6.1, 10.2,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 22

Multiple choice 2D Arrays
Given the following: double[][] something = { {2.5, 6.8, 8.3, 2.3, 0.0}, {6.1, 10.2,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 23

Multiple choice 2D Arrays
Given the following: double[][] something = { {2.5, 6.8, 8.3, 2.3, 0.0}, {6.1, 10.2,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 24

Multiple choice 2D Arrays
Given the following: double[][] something = { {2.5, 6.8, 8.3, 2.3, 0.0}, {6.1, 10.2, 1.3,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 25

Multiple choice 2D Arrays
Given the following: double[][] something = { {2.5, 6.8, 8.3, 2.3, 0.0}, {6.1, 10.2, 1.3, -…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 26

Multiple choice 2D Arrays
Given the following: double[][] something = { {2.5, 6.8, 8.3, 2.3, 0.0}, {6.1, 10.2, 1.3, - 2.5, - 9.9}, {1.1, 2.3, 5.8, 13.21, 34.55} }; We want to replace the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 27

Multiple choice 2D Arrays
Given the following: String[][] poem = { {"I", "am", "the", "cookie", "monster."}, {"Would", "you", "like", "a", "cookie?"}, {"COOOOKIE", "OM", "NOM", "NOM",…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 28

Multiple choice 2D Arrays
Consider the following code segment, which is intended to create and initialize the 2D array words where the length of each word corresponds to the product of…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 29

Multiple choice 2D Arrays
Consider the following code segment, which is intended to display the word boards. String[][] twoLetters = {{"ab", "ac", "ad", "ar", "af"}, {"bo", "be", "bi",…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 30

Multiple choice 2D Arrays
Consider the following code segment: int[][] nums = new int[5][5]; for (int i = 0;i< nums.length;i++) { for (int j =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 21 of 195
Page 3 of 20