Verityprep
Question Bank

AP® Computer Science A Multiple Choice Questions

Work through AP Computer Science A multiple-choice questions unit by unit, 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 2,811
  1. 51
  2. 52
  3. 53
  4. 54
  5. 55
  6. 56
  7. 57
  8. 58
  9. 59
  10. 60

Question 51

Multiple choice Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
Which expression returns…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 55

Multiple choice Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 2,811
Page 6 of 282