Verityprep
Question Bank

AP® Computer Science A Practice Questions

Work through AP Computer Science A practice 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 581–590 of 3,140
  1. 581
  2. 582
  3. 583
  4. 584
  5. 585
  6. 586
  7. 587
  8. 588
  9. 589
  10. 590

Question 581

Multiple choice Unit 1: Using Objects and Methods
What is printed by the following code segment? String s = "computer"; String t…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 582

Multiple choice Unit 1: Using Objects and Methods
What is printed by the following code segment? String w = "stream"; String x =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 583

Multiple choice Unit 1: Using Objects and Methods
Consider the following declarations: String a = "Apple"; String b = "apple"; String c = "banana"; Which of…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 584

Multiple choice Unit 1: Using Objects and Methods
Consider the following declaration: String s = "hello";…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 585

Multiple choice Unit 1: Using Objects and Methods
What is printed by the following code segment? String s1 = "pear"; String s2 = "peach"; if (s1.compareTo(s2) <…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 586

Multiple choice Unit 1: Using Objects and Methods
Which of the following…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 587

Multiple choice Unit 1: Using Objects and Methods
What is printed by the following…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 588

Multiple choice Unit 1: Using Objects and Methods
A programmer wants to swap the values of x and y, using the code below. What…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 589

Multiple choice Unit 1: Using Objects and Methods
A greenhouse program stores the number of trays, a temperature that may have a fractional…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 590

Multiple choice Unit 1: Using Objects and Methods
Each option is considered separately…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 581 of 3,140
Page 59 of 314