Verityprep
Question Bank · Unit 2

AP® Computer Science A Selection and Iteration Practice Questions

Work through AP Computer Science A practice questions on Selection and Iteration, 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 481–490 of 740
  1. 481
  2. 482
  3. 483
  4. 484
  5. 485
  6. 486
  7. 487
  8. 488
  9. 489
  10. 490

Question 481

Multiple choice Boolean Expressions
Which of the following is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 482

Multiple choice Boolean Expressions
Consider the following declarations: boolean p = true; boolean q = false; Which of…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 483

Multiple choice Iteration
Consider the following loop: for (int i = 3;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 484

Multiple choice Iteration
What is printed by the following code segment? int n = 100; int count = 0;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 485

Multiple choice Iteration
Which of the following code…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 486

Multiple choice Iteration
How many times is the body of the following loop…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 487

Multiple choice Iteration
What is printed by the following code segment? for (int r = 1; r <= 3; r++) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 488

Multiple choice Iteration
What is the value of count after the following code segment is executed? int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 489

Multiple choice Iteration
What is printed by the following code segment? String s = "abcdef"; String r = ""; for…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 490

Multiple choice Iteration
What is printed by the following code segment? int num = 4738; int sum =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 481 of 740
Page 49 of 74