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,691–2,700 of 2,811
  1. 2691
  2. 2692
  3. 2693
  4. 2694
  5. 2695
  6. 2696
  7. 2697
  8. 2698
  9. 2699
  10. 2700

Question 2691

Multiple choice Unit 4: Data Collections
A text file contains: 3,7. What is printed? String line = sc.nextLine();…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2692

Multiple choice Unit 4: Data Collections
A text file contains: red|green|blue. What is printed? String line = sc.nextLine();…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2693

Multiple choice Unit 4: Data Collections
A text file contains three lines: A,1 B,2 C,3 What is printed? int sum = 0; while (sc.hasNext()) { String[] parts =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2694

Multiple choice Unit 4: Data Collections
A text file contains: start,middle,end. What is printed? String line = sc.nextLine();…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2695

Multiple choice Unit 4: Data Collections
A text file contains: 10.0,20.0,30.0. What is printed? String line = sc.nextLine(); sc.close(); String[] parts = line.split(",");…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2696

Multiple choice Unit 4: Data Collections
A text file contains: AB,CDE,F. What is printed? String line = sc.nextLine(); sc.close(); String[] parts =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2697

Multiple choice Unit 4: Data Collections
A text file contains: X,Y,Z. What is printed? String line = sc.nextLine(); sc.close(); String[] parts = line.split(",");…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2698

Multiple choice Unit 4: Data Collections
A text file contains: 7,2. What is printed? String line = sc.nextLine(); sc.close(); String[] parts = line.split(",");…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2699

Multiple choice Unit 4: Data Collections
A text file contains: one-two-three four-five. What is printed? String token =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2700

Multiple choice Unit 4: Data Collections
A text file contains two lines: name:Alice score:95 What is printed? int score = 0; while (sc.hasNext()) { String[] parts =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2,691 of 2,811
Page 270 of 282