Verityprep
Question Bank · Unit 1

AP® Computer Science A Using Objects and Methods Practice Questions

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

Question 581

Multiple choice Using Objects
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 Using Objects
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 Using Objects
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 Using Objects
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 Using Objects
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 Primitive Types
Which of the following…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 587

Multiple choice Primitive Types
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 Primitive Types
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 Primitive Types
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 Primitive Types
Each option is considered separately…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 581 of 776
Page 59 of 78