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,431–2,440 of 2,811
  1. 2431
  2. 2432
  3. 2433
  4. 2434
  5. 2435
  6. 2436
  7. 2437
  8. 2438
  9. 2439
  10. 2440

Question 2431

Multiple choice Unit 4: Data Collections
What is printed? String s="CS:AP:Java"; String[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2432

Multiple choice Unit 4: Data Collections
Which prints exactly…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2433

Multiple choice Unit 4: Data Collections
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 2434

Multiple choice Unit 4: Data Collections
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 2435

Multiple choice Unit 4: Data Collections
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 2436

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 2437

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 2438

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 2439

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 2440

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 2,431 of 2,811
Page 244 of 282