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 1,851–1,860 of 2,811
  1. 1851
  2. 1852
  3. 1853
  4. 1854
  5. 1855
  6. 1856
  7. 1857
  8. 1858
  9. 1859
  10. 1860

Question 1851

Multiple choice Unit 4: Data Collections
True or false: adding an int or double primitive value to…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1852

Multiple choice Unit 4: Data Collections
What is printed? Assume ArrayList is imported. ArrayList array = new ArrayList () array.add(3);…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1853

Multiple choice Unit 4: Data Collections
What is printed? Assume ArrayList is imported. ArrayList array = new ArrayList () array.add(3);…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1854

Multiple choice Unit 4: Data Collections
What is printed? Assume ArrayList is imported. ArrayList names = new ArrayList () names.add("Michael"); names.add("Lebron") names.add("Serena");…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1855

Multiple choice Unit 4: Data Collections
Which indexed loop accesses every existing element of a…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1856

Multiple choice Unit 4: Data Collections
True or false: enhanced for loops…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1857

Multiple choice Unit 4: Data Collections
Will this method remove every multiple of 3? public void…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1858

Multiple choice Unit 4: Data Collections
Assume this method is inside a generic class with type parameter E. Which loop inserts element…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1859

Multiple choice Unit 4: Data Collections
How does a standard…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1860

Multiple choice Unit 4: Data Collections
True or false: linear search becomes…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1,851 of 2,811
Page 186 of 282