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 791–800 of 1,222
  1. 791
  2. 792
  3. 793
  4. 794
  5. 795
  6. 796
  7. 797
  8. 798
  9. 799
  10. 800

Question 791

Multiple choice Using Text Files
Which of these…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 792

Multiple choice Using Text Files
Which Scanner method is best to…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 793

Multiple choice Using Text Files
What happens if you…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 794

Multiple choice Using Text Files
What does this code print for input file: Hello World…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 795

Multiple choice Using Text Files
Which is NOT a…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 796

Multiple choice Using Text Files
With Locale.US, input tokens are3.5,notANumber,7.2. What does the loop…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 797

Multiple choice Using Text Files
What does this code output for file: A-B C-D while (scan.hasNext()) { String[] parts =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 798

Multiple choice Using Text Files
Why can nextLine() return an empty string immediately…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 799

Multiple choice Using Text Files
File content: true false hello What happens with: while…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 800

Multiple choice Using Text Files
Given a file names.txt with the following content: Cohen-Isabel Lee-Cindy Patel-Anisha Which code correctly…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 791 of 1,222
Page 80 of 123