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: Primitive Types Clear filter

Questions 1–10 of 230
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10

Question 1

Multiple choice Primitive Types
Consider the following code segment. int a = 3 + 2 * 3; int b = 4 + 3 / 2; int c = 7 %…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2

Multiple choice Primitive Types
Which of the following expressions evaluate to 3.5? I.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 3

Multiple choice Primitive Types
What is printed as a result of executing the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 4

Multiple choice Primitive Types
Consider the following code segment. double x = 5 * 4 / 2 - 5 / 2 * 4;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 5

Multiple choice Primitive Types
What is printed when the following statement is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 6

Multiple choice Primitive Types
The statement System.out.println (Integer.MAX_VALUE); prints 2147483647. What…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 7

Multiple choice Primitive Types
Which of the following…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 8

Multiple choice Primitive Types
What is the proper syntax to declare and initialize…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 9

Multiple choice Primitive Types
What is the value of x after this…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 10

Multiple choice Primitive Types
What is the result of this…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1 of 230
Page 1 of 23