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.

Subtopic: Using Objects Clear filter

Questions 331–340 of 454
  1. 331
  2. 332
  3. 333
  4. 334
  5. 335
  6. 336
  7. 337
  8. 338
  9. 339
  10. 340

Question 331

Multiple choice Using Objects
What is printed? int x = -11; double root =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 332

Multiple choice Using Objects
What is printed? int a = 2 * (int) Math.sqrt(8); int b =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 333

Multiple choice Using Objects
What is printed? double base = 2.5; int a = (int) Math.pow(base,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 334

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 335

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 336

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 337

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 338

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 339

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 340

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 331 of 454
Page 34 of 46