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.

Subtopic: Using Objects Clear filter

Questions 211–220 of 454
  1. 211
  2. 212
  3. 213
  4. 214
  5. 215
  6. 216
  7. 217
  8. 218
  9. 219
  10. 220

Question 211

Multiple choice Using Objects
What is the output from the following code? String s = "Computer Science is fun!"; String s1 =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 212

Multiple choice Using Objects
Consider the following code segment. String s1 = "avocado"; String s2 = "banana";…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 213

Multiple choice Using Objects
Consider this method. public static String doSomething(String s) { final String BLANK = " "; //BLANK contains a single space String str = ""; //empty string…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 214

Multiple choice Using Objects
A math teacher is writing a program that will correctly calculate the area of a circle. Recall that the area of a circle is pi times the radius squared…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 215

Multiple choice Using Objects
Consider the following code segment: String s = "This is the beginning"; String t =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 216

Multiple choice Using Objects
Given the following code, what line will cause a compiler error? 1 String word = "Sunday Funday…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 217

Multiple choice Using Objects
Given the following code, which of the following…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 218

Multiple choice Using Objects
Given the following code, what is the final value stored in…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 219

Multiple choice Using Objects
Given the following code, what is the final value stored in s4?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 220

Multiple choice Using Objects
Given that "J" comes before "j" in the dictionary and the following variables have been defined…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 211 of 454
Page 22 of 46