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,451–2,460 of 2,811
  1. 2451
  2. 2452
  3. 2453
  4. 2454
  5. 2455
  6. 2456
  7. 2457
  8. 2458
  9. 2459
  10. 2460

Question 2451

Multiple choice Unit 4: Data Collections
Why can nextLine() return an empty string immediately…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2452

Multiple choice Unit 4: Data Collections
File content: true false hello What happens with: while…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2453

Multiple choice Unit 4: Data Collections
Given a file names.txt with the following content: Cohen-Isabel Lee-Cindy Patel-Anisha Which code correctly…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2454

Multiple choice Unit 4: Data Collections
File content: 5 10 15 What does this print? int sum = 0; while…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2455

Multiple choice Unit 4: Data Collections
File content: A B C D What happens? while (scan.hasNextLine()) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2456

Multiple choice Unit 4: Data Collections
Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2457

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 2458

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 2459

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 2460

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 2,451 of 2,811
Page 246 of 282