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.

Questions 651–660 of 776
  1. 651
  2. 652
  3. 653
  4. 654
  5. 655
  6. 656
  7. 657
  8. 658
  9. 659
  10. 660

Question 651

Multiple choice Using Objects
The ints dx and dy are each between -10 and 10. A robot must store its straight-line distance from its starting point as a double. The distance formula is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 652

Multiple choice Using Objects
Each declaration is considered independently.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 653

Multiple choice Using Objects
What is printed? Math.PI is approximately 3.14159. int a = (int)…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 654

Multiple choice Using Objects
The int diameter is from 1 through 20 inclusive. A circle has circumference pi times diameter.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 655

Multiple choice Using Objects
After the declaration below, each offered statement is considered…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 656

Multiple choice Using Objects
A ring has inner radius inner and outer radius outer, where both are ints and 1 <= inner < outer <= 6. Its area is pi…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 657

Multiple choice Using Objects
What is printed? Math.PI is approximately 3.14159. double radius = 5 / 2;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 658

Multiple choice Using Objects
What is printed? Math.PI is approximately 3.14159.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 659

Multiple choice Using Objects
Which output is guaranteed every time this code executes? double r =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 660

Multiple choice Using Objects
A game must choose one of the even scores 4, 6, 8, and 10, with approximately equal…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 651 of 776
Page 66 of 78