Verityprep
Question Bank

AP® Computer Science A Practice Questions

Work through AP Computer Science A practice questions unit by unit, 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 2,931–2,940 of 3,140
  1. 2931
  2. 2932
  3. 2933
  4. 2934
  5. 2935
  6. 2936
  7. 2937
  8. 2938
  9. 2939
  10. 2940

Question 2931

Multiple choice Unit 4: Data Collections
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 2932

Multiple choice Unit 4: Data Collections
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 2933

Multiple choice Unit 4: Data Collections
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 2934

Multiple choice Unit 4: Data Collections
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 2935

Multiple choice Unit 4: Data Collections
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 2936

Multiple choice Unit 4: Data Collections
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 2937

Multiple choice Unit 4: Data Collections
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 2938

Multiple choice Unit 4: Data Collections
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 2939

Multiple choice Unit 4: Data Collections
A text file contains: false 10. What is printed? boolean b = sc.nextBoolean(); int x =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2940

Multiple choice Unit 4: Data Collections
A text file contains: 10 20 30. What is printed? int sum = 0; while…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2,931 of 3,140
Page 294 of 314