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,681–2,690 of 3,140
  1. 2681
  2. 2682
  3. 2683
  4. 2684
  5. 2685
  6. 2686
  7. 2687
  8. 2688
  9. 2689
  10. 2690

Question 2681

Free response Unit 4: Data Collections
The Gizmo class represents gadgets that people purchase. Some Gizmo objects are electronic and others are not. A partial definition of the Gizmo class is shown…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2682

Multiple choice Unit 4: Data Collections
Two vertical lines at indices left and right enclose area(right−left)×min(height[left],height[right]). Return the greatest area; heights are nonnegative,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2683

Free response Unit 4: Data Collections
SmartParkingSimulator uses a rectangular boolean matrix: true means occupied, false available. Choose the first row from top to bottom with any vacancy; within…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2684

Free response Unit 4: Data Collections
Shipment stores destination, weight in kilograms and fragile status. ShipmentTracker maintains an ArrayList . Do not use Map or HashMap for grouping. public…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2685

Multiple choice Unit 4: Data Collections
Which class is commonly used…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2686

Multiple choice Unit 4: Data Collections
Which import statement is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2687

Multiple choice Unit 4: Data Collections
Which Scanner method…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2688

Multiple choice Unit 4: Data Collections
What does…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2689

Multiple choice Unit 4: Data Collections
What type does…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2690

Multiple choice Unit 4: Data Collections
If a file contains the word true, which Scanner…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2,681 of 3,140
Page 269 of 314