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 681–690 of 3,140
  1. 681
  2. 682
  3. 683
  4. 684
  5. 685
  6. 686
  7. 687
  8. 688
  9. 689
  10. 690

Question 681

Multiple choice Unit 1: Using Objects and Methods
Which offered value of label makes accepted true? boolean…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 682

Multiple choice Unit 1: Using Objects and Methods
What is printed? String word = "silver"; int start =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 683

Multiple choice Unit 1: Using Objects and Methods
The two expressions below are not equivalent for all nonempty tags. Which offered value of tag…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 684

Multiple choice Unit 1: Using Objects and Methods
The test below is intended to detect "ant" anywhere in word. Which offered…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 685

Multiple choice Unit 1: Using Objects and Methods
The first literal contains one space after go. What is printed? String a = "go "; String…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 686

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 687

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 688

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 689

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 690

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 681 of 3,140
Page 69 of 314