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.

Subtopic: Using Text Files Clear filter

Questions 41–50 of 181
  1. 41
  2. 42
  3. 43
  4. 44
  5. 45
  6. 46
  7. 47
  8. 48
  9. 49
  10. 50

Question 41

Multiple choice Using Text Files
With Locale.US and at least one Product-Price line, which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 42

Multiple choice Using Text Files
Given "City - Population" per line, print the total…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 43

Multiple choice Using Text Files
Each line contains a word. Which prints…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 44

Multiple choice Using Text Files
For a nonempty file of valid doubles using…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 45

Multiple choice Using Text Files
Read Employee-Role lines. Which prints only the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 46

Multiple choice Using Text Files
Input consists of the boolean tokens true false…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 47

Multiple choice Using Text Files
Input is the single line2 4 6…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 48

Multiple choice Using Text Files
Input lines are Ali,Ayse,Mehmet. Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 49

Multiple choice Using Text Files
With Locale.US, input lines…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 50

Multiple choice Using Text Files
Input lines are…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 41 of 181
Page 5 of 19