Verityprep
Question Bank · Unit 4

AP® Computer Science A Data Collections Practice Questions

Work through AP Computer Science A practice 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 1,011–1,020 of 1,222
  1. 1011
  2. 1012
  3. 1013
  4. 1014
  5. 1015
  6. 1016
  7. 1017
  8. 1018
  9. 1019
  10. 1020

Question 1011

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 1012

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 1013

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 1014

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 1015

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 1016

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 1017

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 1018

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 1019

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 1020

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 1,011 of 1,222
Page 102 of 123