Verityprep
Question Bank

AP® Computer Science A Multiple Choice Questions

Work through AP Computer Science A multiple-choice 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 521–530 of 2,811
  1. 521
  2. 522
  3. 523
  4. 524
  5. 525
  6. 526
  7. 527
  8. 528
  9. 529
  10. 530

Question 521

Multiple choice Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 2,811
Page 53 of 282