Verityprep
Question Bank · Unit 1

AP® Computer Science A Using Objects and Methods Multiple Choice Questions

Work through AP Computer Science A multiple-choice 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 61–70 of 681
  1. 61
  2. 62
  3. 63
  4. 64
  5. 65
  6. 66
  7. 67
  8. 68
  9. 69
  10. 70

Question 61

Multiple choice Primitive Types
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 Primitive Types
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 Primitive Types
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 Primitive Types
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 Primitive Types
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 Primitive Types
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 Primitive Types
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 Primitive Types
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 Primitive Types
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 Primitive Types
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 681
Page 7 of 69