Verityprep
Question Bank · Unit 1

AP® Computer Science A Using Objects and Methods Practice Questions

Work through AP Computer Science A practice questions on Using Objects and Methods, 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 571–580 of 776
  1. 571
  2. 572
  3. 573
  4. 574
  5. 575
  6. 576
  7. 577
  8. 578
  9. 579
  10. 580

Question 571

Free response Using Objects
This question involves parts used to assemble toy vehicles. Each toy vehicle is assembled using one base and either two or four wheels. The following…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 572

Multiple choice Primitive Types
A program that calculates a student's average from sum and count (both int) compiles and runs without crashing, but a student…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 573

Multiple choice Primitive Types
Which of the following is a valid Java identifier that…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 574

Multiple choice Primitive Types
What is printed by the following code segment?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 575

Multiple choice Primitive Types
What is printed by the following code segment? int a =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 576

Multiple choice Primitive Types
What is the value of result after the following code segment…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 577

Multiple choice Primitive Types
What is printed by the following code segment? int m = 9; int n = 4;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 578

Multiple choice Primitive Types
What is the value of p after the following code segment is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 579

Multiple choice Primitive Types
What is the value of d after the following statement is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 580

Multiple choice Primitive Types
Which of the following expressions produces a random…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 571 of 776
Page 58 of 78