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

Question 681

Multiple choice Using Objects
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 Using Objects
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 Using Objects
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 Using Objects
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 Using Objects
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 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 687

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 688

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 689

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 690

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 681 of 776
Page 69 of 78