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 451–460 of 546
  1. 451
  2. 452
  3. 453
  4. 454
  5. 455
  6. 456
  7. 457
  8. 458
  9. 459
  10. 460

Question 451

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 452

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 453

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 454

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 455

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 456

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 457

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 458

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 459

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 460

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 451 of 546
Page 46 of 55