Verityprep
Question Bank · Unit 1

AP® Computer Science A Using Objects and Methods Multiple Choice Questions

Work through AP Computer Science A multiple-choice 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 591–600 of 681
  1. 591
  2. 592
  3. 593
  4. 594
  5. 595
  6. 596
  7. 597
  8. 598
  9. 599
  10. 600

Question 591

Multiple choice Using Objects
The String s contains four characters. The ints a and b may be negative or positive. Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 592

Multiple choice Using Objects
What is printed? String word = "notebook";…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 593

Multiple choice Using Objects
Which offered value of start makes the code print true without throwing an exception? String word =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 594

Multiple choice Using Objects
What is printed? String s = "desk"; System.out.print("[" +…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 595

Multiple choice Using Objects
What happens when the code executes? String s = "ABCD";…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 596

Multiple choice Using Objects
A nonempty marker occurs in text, and p is the starting index of its first occurrence. Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 597

Multiple choice Using Objects
What is printed? String route = "long:red:blue"; int split = route.indexOf(":");…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 598

Multiple choice Using Objects
A nonempty String s has length n. A label must show its middle character when n is odd and its…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 599

Multiple choice Using Objects
What is printed? String a = "sunset"; String b = a; a =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 600

Multiple choice Using Objects
What is printed? String a = "A" + 1 + 2; String b = 1 + 2 + "A";…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 591 of 681
Page 60 of 69