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 631–640 of 776
  1. 631
  2. 632
  3. 633
  4. 634
  5. 635
  6. 636
  7. 637
  8. 638
  9. 639
  10. 640

Question 631

Multiple choice Primitive Types
What is printed? int balance = 23; balance -= balance / 4; balance %= 7; boolean…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 632

Multiple choice Primitive Types
What is printed? int quantity = 10; quantity +=…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 633

Multiple choice Primitive Types
What is printed? double value = 17; value /=…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 634

Multiple choice Primitive Types
What is printed? int step = 3; int value = 20; value /= step + 2; step…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 635

Multiple choice Primitive Types
What is printed? int whole = 3; double reading = 7.5; whole += reading…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 636

Multiple choice Primitive Types
Which replacement statement produces exactly the same final value of count as the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 637

Multiple choice Primitive Types
The declarations below are followed by exactly one offered statement.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 638

Multiple choice Using Objects
What is printed? int drift = -7; double offset = -2.5;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 639

Multiple choice Using Objects
What is printed? int position = -9;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 640

Multiple choice Using Objects
What is printed? int left = -6; int right = 2; int a = Math.abs(left -…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 631 of 776
Page 64 of 78