Verityprep
Question Bank · Unit 1

AP® Computer Science A Using Objects and Methods Multiple Choice Questions

Work through AP Computer Science A multiple-choice 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 581–590 of 681
  1. 581
  2. 582
  3. 583
  4. 584
  5. 585
  6. 586
  7. 587
  8. 588
  9. 589
  10. 590

Question 581

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

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 588

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 589

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 590

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 581 of 681
Page 59 of 69