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 911–920 of 1,079
  1. 911
  2. 912
  3. 913
  4. 914
  5. 915
  6. 916
  7. 917
  8. 918
  9. 919
  10. 920

Question 911

Multiple choice Using Text Files
A text file contains: 7 2. What is printed? int a = sc.nextInt(); int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 912

Multiple choice Using Text Files
A text file contains: 10 20 30. What is printed? String s =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 913

Multiple choice Using Text Files
A text file contains two lines: abc def What is printed?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 914

Multiple choice Using Text Files
A text file contains three lines: first second third What is printed? String a…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 915

Multiple choice Using Text Files
A text file contains: 10 3. What is printed? int x = sc.nextInt();…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 916

Multiple choice Using Text Files
A text file contains: AP CSA 2026. What is printed? String s…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 917

Multiple choice Using Text Files
A text file contains: hello. What is printed? Note that close() is called…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 918

Multiple choice Using Text Files
A text file contains: 1.5 2.5. What is printed? double a =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 919

Multiple choice Using Text Files
A text file contains: 3 cats. What is printed? int n =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 920

Multiple choice Using Text Files
A text file contains: 4 5. What is printed? String a = sc.next(); String b = sc.next();…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 911 of 1,079
Page 92 of 108