Verityprep
Question Bank · Unit 4

AP® Computer Science A Data Collections Multiple Choice Questions

Work through AP Computer Science A multiple-choice questions on Data Collections, 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 701–710 of 1,079
  1. 701
  2. 702
  3. 703
  4. 704
  5. 705
  6. 706
  7. 707
  8. 708
  9. 709
  10. 710

Question 701

Multiple choice Using Text Files
What is printed? String s="A->B->C->D"; String[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 702

Multiple choice Using Text Files
Which string delimiter fills the blank so the code prints Row0:red, Row1:green and Row2:blue on separate lines? String…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 703

Multiple choice Using Text Files
What is printed? String s="id=42;user=alice;role=admin"; String[] kv=s.split(";"); String…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 704

Multiple choice Using Text Files
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 705

Multiple choice Using Text Files
Which prints the initials…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 706

Multiple choice Using Text Files
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 707

Multiple choice Using Text Files
Which prints d-c-b-a from…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 708

Multiple choice Using Text Files
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 709

Multiple choice Using Text Files
Which statement about…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 710

Multiple choice Using Text Files
If you call nextInt() but the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 701 of 1,079
Page 71 of 108