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 191–200 of 454
  1. 191
  2. 192
  3. 193
  4. 194
  5. 195
  6. 196
  7. 197
  8. 198
  9. 199
  10. 200

Question 191

Multiple choice Using Objects
Consider the following code segment: String band = "anamanaguchi";…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 192

Multiple choice Using Objects
Consider the following code segment: if (!somethingIsFalse()) return false; else…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 193

Multiple choice Using Objects
Consider the following statement: System.out.println(Math.pow(2,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 194

Multiple choice Using Objects
Consider the following code segment: Integer n = 3; // Line 1 Double x = 0.14; // Line 2…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 195

Multiple choice Using Objects
Consider the following code segment: String abc = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; < missing statement > System.out.println(abc.substring(k, k+1)); It is intended…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 196

Multiple choice Using Objects
Consider the following code segment: String abc = "AAABBBCCC"; String abc1 = abc.substring(0, abc.length() - 1); abc1 =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 197

Multiple choice Using Objects
Consider the following code segment: int x = (int)Math.pow(2, 5);…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 198

Multiple choice Using Objects
Consider the following code segment: String str = "012345"; for (int i = 0; i < str.length() - 1; i++)…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 199

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 200

Multiple choice Using Objects
Given the following code segment: String s1 = new String("hi"); String s2 = new String("hi"); String s3 = s2;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 191 of 454
Page 20 of 46