Verityprep
Question Bank · Unit 1

AP® Computer Science A Using Objects and Methods Multiple Choice Questions

Work through AP Computer Science A multiple-choice 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 531–540 of 681
  1. 531
  2. 532
  3. 533
  4. 534
  5. 535
  6. 536
  7. 537
  8. 538
  9. 539
  10. 540

Question 531

Multiple choice Primitive Types
An order contains 4 items costing 7 credits each, plus a single shipping charge of 3 credits. The program prints 49 instead of the intended total 31. Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 532

Multiple choice Primitive Types
The int variables completed and total satisfy 0 <= completed <= total <= 1000 and total > 0. A progress indicator should store the percentage…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 533

Multiple choice Primitive Types
A temperature converter uses the formula Fahrenheit = (9/5) × Celsius + 32, where the fraction represents real-number…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 534

Multiple choice Primitive Types
A display should rotate three stored counts: red receives the original blue count, blue receives the original green count, and green receives the original red…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 535

Multiple choice Primitive Types
The int variable badge is a four-digit positive number (1000 through 9999). A machine removes the hundreds digit and keeps the other digits…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 536

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 537

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 538

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 539

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 540

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 531 of 681
Page 54 of 69