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 521–530 of 681
  1. 521
  2. 522
  3. 523
  4. 524
  5. 525
  6. 526
  7. 527
  8. 528
  9. 529
  10. 530

Question 521

Multiple choice Primitive Types
Which integer literal can replace the comment so that this code prints 5? int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 522

Multiple choice Primitive Types
What is printed? Each option shows the visible output; ignore the final cursor…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 523

Multiple choice Primitive Types
What is printed by this statement? Ignore the final…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 524

Multiple choice Primitive Types
What visible output does this statement…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 525

Multiple choice Primitive Types
The variables below contain two scores. Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 526

Multiple choice Primitive Types
Which statement uses the variables below to…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 527

Multiple choice Primitive Types
What visible output does this statement produce? Ignore the final…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 528

Multiple choice Primitive Types
An audio clip lasts 2 minutes and 45 seconds. The code below incorrectly stores 2.0 in duration. Which replacement for the last line correctly…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 529

Multiple choice Primitive Types
A shipping program packs items into boxes that each hold capacity items. Both variables are int, with 1 <= items <= 1000 and 1…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 530

Multiple choice Primitive Types
The following code appears inside a method. Which outcome is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 521 of 681
Page 53 of 69