Verityprep
Question Bank

AP® Computer Science A Practice Questions

Work through AP Computer Science A practice 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,721–2,730 of 3,140
  1. 2721
  2. 2722
  3. 2723
  4. 2724
  5. 2725
  6. 2726
  7. 2727
  8. 2728
  9. 2729
  10. 2730

Question 2721

Multiple choice Unit 4: Data Collections
Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2722

Multiple choice Unit 4: Data Collections
File content: John Doe What does this code…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2723

Multiple choice Unit 4: Data Collections
Each line is Name-Email-Age, with no hyphens inside fields. For the input shown, which prints only…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2724

Multiple choice Unit 4: Data Collections
With Locale.US and positive averages, which prints the name with the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2725

Multiple choice Unit 4: Data Collections
With Locale.US and at least one Product-Price line, which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2726

Multiple choice Unit 4: Data Collections
Given "City - Population" per line, print the total…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2727

Multiple choice Unit 4: Data Collections
Each line contains a word. Which prints…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2728

Multiple choice Unit 4: Data Collections
For a nonempty file of valid doubles using…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2729

Multiple choice Unit 4: Data Collections
Read Employee-Role lines. Which prints only the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2730

Multiple choice Unit 4: Data Collections
Input consists of the boolean tokens true false…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2,721 of 3,140
Page 273 of 314