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 61–70 of 2,811
  1. 61
  2. 62
  3. 63
  4. 64
  5. 65
  6. 66
  7. 67
  8. 68
  9. 69
  10. 70

Question 61

Multiple choice Unit 1: Using Objects and Methods
Which of the following would equal 2? I. int x = 0; x ++; x +=…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 62

Multiple choice Unit 1: Using Objects and Methods
Given a and b as properly initialized integers, which of the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 63

Multiple choice Unit 1: Using Objects and Methods
Assume y is a properly initialized positive integer.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 64

Multiple choice Unit 1: Using Objects and Methods
What will the output of the following lines of code be? int x = 10;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 65

Multiple choice Unit 1: Using Objects and Methods
Which of the following print: Hello Java! I. System.out.println("Hello Java!"); II. System.out.print("Hello Java!");…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 66

Multiple choice Unit 1: Using Objects and Methods
How many lines will be printed with the following statement? System.out.println("Hello");…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 67

Multiple choice Unit 1: Using Objects and Methods
Assume that a, b, and c are all integers with values of 90, 5, and 4…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 68

Multiple choice Unit 1: Using Objects and Methods
A financial planner wants to calculate the average rate of return for clients. She does this by dividing the earnedIncome by the principal amount and displays…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 69

Multiple choice Unit 1: Using Objects and Methods
A teacher has calculated the gradeAverage as a double, but for report cards, she needs to report it rounded to the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 70

Multiple choice Unit 1: Using Objects and Methods
What is the result of the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 61 of 2,811
Page 7 of 282