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 461–470 of 2,811
  1. 461
  2. 462
  3. 463
  4. 464
  5. 465
  6. 466
  7. 467
  8. 468
  9. 469
  10. 470

Question 461

Multiple choice Unit 1: Using Objects and Methods
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 462

Multiple choice Unit 1: Using Objects and Methods
What is printed by the following code segment?
String label = "AP";
int n = 3;
System.out.println(label + (n + 2) + n / 2);
Pick an answer, then check it. The solution opens in a window.

Question 463

Multiple choice Unit 1: Using Objects and Methods
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 464

Multiple choice Unit 1: Using Objects and Methods
Consider the following code segment.
int x = 17;
double y = x / 5 + x / 5.0;
What value is stored in y ?
Pick an answer, then check it. The solution opens in a window.

Question 465

Multiple choice Unit 1: Using Objects and Methods
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 466

Multiple choice Unit 1: Using Objects and Methods
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 467

Multiple choice Unit 1: Using Objects and Methods
Consider the following code segment. int a = 14; int b = 5;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 468

Multiple choice Unit 1: Using Objects and Methods
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 469

Multiple choice Unit 1: Using Objects and Methods
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 470

Multiple choice Unit 1: Using Objects and Methods
Consider the following code segment. int x = 17; int y = 4; x = x / y +…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 461 of 2,811
Page 47 of 282