Verityprep
Question Bank · Unit 1

AP® Computer Science A Using Objects and Methods Practice Questions

Work through AP Computer Science A practice 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 291–300 of 546
  1. 291
  2. 292
  3. 293
  4. 294
  5. 295
  6. 296
  7. 297
  8. 298
  9. 299
  10. 300

Question 291

Free response Using Objects
This question involves the use of check digits, which can be used to help detect if an error has occurred when a number is entered or transmitted…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 292

Multiple choice Using Objects
Given file line "Alice-90", how…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 293

Multiple choice Using Objects
Which of the following…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 294

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 295

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 296

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 297

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 298

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 299

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 300

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 291 of 546
Page 30 of 55