Verityprep
Question Bank

AP® Computer Science A Multiple Choice Questions

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

Question 591

Multiple choice Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 2,811
Page 60 of 282