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,471–2,480 of 2,811
  1. 2471
  2. 2472
  3. 2473
  4. 2474
  5. 2475
  6. 2476
  7. 2477
  8. 2478
  9. 2479
  10. 2480

Question 2471

Multiple choice Unit 4: Data Collections
Input Name-Age lines contain positive ages:…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2472

Multiple choice Unit 4: Data Collections
Input Car-Price lines are…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2473

Multiple choice Unit 4: Data Collections
Input is the single line a b c d.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2474

Multiple choice Unit 4: Data Collections
What is printed? String[] a={"A","B"}; String[] b=a; String[] c={a[0],a[1]} String…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2475

Multiple choice Unit 4: Data Collections
What is v[4] after this code? int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2476

Multiple choice Unit 4: Data Collections
What are the final array contents?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2477

Multiple choice Unit 4: Data Collections
What are the final array contents?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2478

Multiple choice Unit 4: Data Collections
What is printed? int[] a={0,1}; int[] b=a;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2479

Multiple choice Unit 4: Data Collections
Assume java.util.ArrayList is imported. What is printed? ArrayList list=new ArrayList ()…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2480

Multiple choice Unit 4: Data Collections
What is printed? String[] cities={"Atlanta","Boston","Chicago"} for(String…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2,471 of 2,811
Page 248 of 282