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 241–250 of 454
  1. 241
  2. 242
  3. 243
  4. 244
  5. 245
  6. 246
  7. 247
  8. 248
  9. 249
  10. 250

Question 241

Multiple choice Using Objects
Consider the following declaration: String s =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 242

Multiple choice Using Objects
Consider the following method: public static String transform(String s) { String result = ""; for (int i = 0; i <…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 243

Multiple choice Using Objects
Which of the following expressions evaluates to true given: String a =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 244

Multiple choice Using Objects
Which of the following correctly converts the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 245

Multiple choice Using Objects
What is printed by the following? String a = "JAVA";…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 246

Multiple choice Using Objects
Given String s = "abcdefgh", what is the value of…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 247

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

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 248

Multiple choice Using Objects
Which of the following correctly extracts the last three…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 249

Multiple choice Using Objects
A method repeat is defined as: public static String repeat(String s, int n) { String r = "";…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 250

Multiple choice Using Objects
What is the output of the following code? String[] tokens = " hello…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 241 of 454
Page 25 of 46