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 581–590 of 2,811
  1. 581
  2. 582
  3. 583
  4. 584
  5. 585
  6. 586
  7. 587
  8. 588
  9. 589
  10. 590

Question 581

Multiple choice Unit 1: Using Objects and Methods
A circle has positive area, with area = pi times radius squared. Which expression…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 582

Multiple choice Unit 1: Using Objects and Methods
Which list contains all and only the possible values of distance? int price…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 583

Multiple choice Unit 1: Using Objects and Methods
A point should be accepted only if its actual distance from the origin is at most 4. The code below is incorrect. Which offered pair x, y is accepted…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 584

Multiple choice Unit 1: Using Objects and Methods
Each coordinate can be any integer from -2 through 2, giving 25 possible ordered pairs (x, y). For how many of these pairs is inside true?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 585

Multiple choice Unit 1: Using Objects and Methods
What is printed? String label = "orbit";…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 586

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 587

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 588

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 589

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 590

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 581 of 2,811
Page 59 of 282