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 421–430 of 546
  1. 421
  2. 422
  3. 423
  4. 424
  5. 425
  6. 426
  7. 427
  8. 428
  9. 429
  10. 430

Question 421

Multiple choice Using Objects
The int n is between 0 and 12 inclusive. Which list contains all and only the values of n…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 422

Multiple choice Using Objects
What is printed? double a = Math.pow(2, -3);…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 423

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 424

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 425

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 426

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 427

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 428

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 429

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 430

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 421 of 546
Page 43 of 55