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 711–720 of 1,079
  1. 711
  2. 712
  3. 713
  4. 714
  5. 715
  6. 716
  7. 717
  8. 718
  9. 719
  10. 720

Question 711

Multiple choice Using Text Files
File contains: true false true What will the loop below print? while…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 712

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 713

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 714

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 715

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 716

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 717

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 718

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 719

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 720

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 711 of 1,079
Page 72 of 108