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.

Subtopic: Using Objects Clear filter

Questions 391–400 of 546
  1. 391
  2. 392
  3. 393
  4. 394
  5. 395
  6. 396
  7. 397
  8. 398
  9. 399
  10. 400

Question 391

Multiple choice Using Objects
Consider the following code segment. String word = "algorithm"; String part =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 392

Multiple choice Using Objects
Consider the following declarations. String s1 = "grid"; String s2 = "grip"; boolean same = s1.equals(s2);…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 393

Multiple choice Using Objects
Consider the following code segment. String word = "practice"; String result =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 394

Multiple choice Using Objects
Consider the following code segment. String s = "science"; String t =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 395

Multiple choice Using Objects
Consider the following code segment. String a = "carpet"; String b =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 396

Multiple choice Using Objects
Consider the following declarations. String x = "stone"; String y =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 397

Multiple choice Using Objects
Consider the following code segment. String code = "calendar"; String part =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 398

Multiple choice Using Objects
Consider the following code segment. String a = "mark"; String b = "mask"; boolean first = a.compareTo(b) < 0;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 399

Multiple choice Using Objects
Consider the following code segment. String s = "container"; String a = s.substring(3, 7);…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 400

Multiple choice Using Objects
Consider the following code segment. String p = "trace"; String q = p.substring(1, 4); String r = "rack"; boolean…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 391 of 546
Page 40 of 55