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 761–770 of 776
  1. 761
  2. 762
  3. 763
  4. 764
  5. 765
  6. 766
  7. 767
  8. 768
  9. 769
  10. 770

Question 761

Multiple choice Using Objects
s is nonempty. Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 762

Multiple choice Using Objects
x and y are nonempty and have equal lengths. The condition below is true. Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 763

Multiple choice Using Objects
a and b may be empty. Which condition is necessary and sufficient for…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 764

Multiple choice Primitive Types
What is printed as a result of executing the following code segment? int total = 7; int n = 2;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 765

Multiple choice Primitive Types
What is printed as a result of executing the following code segment? int a…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 766

Multiple choice Primitive Types
What is printed as a result of executing the following code segment?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 767

Multiple choice Primitive Types
What is printed as a result of executing the following code segment? int hour =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 768

Multiple choice Primitive Types
What is printed as a result of executing the following code segment? double total = 0;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 769

Multiple choice Using Objects
What is printed as a result of executing the following code segment? String s = "computer"; String r =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 770

Multiple choice Using Objects
What is printed as a result of executing the following code segment? String s = "banana"; int count = 0; for (int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 761 of 776
Page 77 of 78