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,701–2,710 of 3,140
  1. 2701
  2. 2702
  3. 2703
  4. 2704
  5. 2705
  6. 2706
  7. 2707
  8. 2708
  9. 2709
  10. 2710

Question 2701

Multiple choice Unit 4: Data Collections
What is printed? String s="2025/09/07"; String[] d=s.split("/");…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2702

Multiple choice Unit 4: Data Collections
Which prints the initials…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2703

Multiple choice Unit 4: Data Collections
What is printed? String s="sec1:topicA,topicB,topicC"; String[] leftRight=s.split(":"); String…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2704

Multiple choice Unit 4: Data Collections
Which prints d-c-b-a from…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2705

Multiple choice Unit 4: Data Collections
The Scanner reads a file with exactly three lines:10,20,30. Which listed loops print those same three lines? A parses int tokens; B reads full lines; C reads…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2706

Multiple choice Unit 4: Data Collections
Which statement about…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2707

Multiple choice Unit 4: Data Collections
If you call nextInt() but the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2708

Multiple choice Unit 4: Data Collections
File contains: true false true What will the loop below print? while…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2709

Multiple choice Unit 4: Data Collections
Which of these…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2710

Multiple choice Unit 4: Data Collections
Which Scanner method is best to…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2,701 of 3,140
Page 271 of 314