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 711–720 of 740
  1. 711
  2. 712
  3. 713
  4. 714
  5. 715
  6. 716
  7. 717
  8. 718
  9. 719
  10. 720

Question 711

Multiple choice Boolean Expressions
What is printed as a result of executing the following code segment? int a = 7, b = 3; boolean r1 = (a > b) && (a % 2…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 712

Multiple choice Boolean Expressions
What is printed as a result of executing the following code segment? int x = 0; boolean r = (x++…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 713

Multiple choice Boolean Expressions
Which expression is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 714

Multiple choice Boolean Expressions
Which single if statement behaves exactly the same as the nested if…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 715

Multiple choice Iteration
What is printed as a result of executing the following code segment? int c = 0;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 716

Multiple choice Iteration
What is printed as a result of executing the following code segment? int total = 0; for…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 717

Multiple choice Iteration
What is printed as a result of executing the following code segment? int n =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 718

Multiple choice Iteration
What is printed as a result of executing the following code segment? int n = 1230;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 719

Multiple choice Iteration
What is printed as a result of executing the following code segment? int a =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 720

Multiple choice Iteration
What is printed as a result of executing the following code segment? int i = 1; int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 711 of 740
Page 72 of 74