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 51–60 of 776
  1. 51
  2. 52
  3. 53
  4. 54
  5. 55
  6. 56
  7. 57
  8. 58
  9. 59
  10. 60

Question 51

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 52

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 53

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 54

Multiple choice Primitive Types
Which expression returns…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 55

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

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 56

Multiple choice Primitive Types
What output will be produced by…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 57

Multiple choice Primitive Types
Refer to the following code segment: double myDouble = 1/4; System.out.println("1 / 4 = " + myDouble); The output of the code is: 1 / 4 = 0.0 The…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 58

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 59

Multiple choice Primitive Types
Joe's Pizza is creating a program that will calculate the total amount of money an employee earns each week. Employees are paid by the hour and only work in 1…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 60

Multiple choice Primitive Types
What will the following code print? int n =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 51 of 776
Page 6 of 78