Verityprep
Question Bank

AP® Computer Science A Multiple Choice Questions

Work through AP Computer Science A multiple-choice questions unit by unit, 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 301–310 of 2,811
  1. 301
  2. 302
  3. 303
  4. 304
  5. 305
  6. 306
  7. 307
  8. 308
  9. 309
  10. 310

Question 301

Multiple choice Unit 1: Using Objects and Methods
Consider the following statement: int i = x % 50; If x is a positive integer,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 302

Multiple choice Unit 1: Using Objects and Methods
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 303

Multiple choice Unit 1: Using Objects and Methods
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 304

Multiple choice Unit 1: Using Objects and Methods
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 305

Multiple choice Unit 1: Using Objects and Methods
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 306

Multiple choice Unit 1: Using Objects and Methods
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 307

Multiple choice Unit 1: Using Objects and Methods
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 308

Multiple choice Unit 1: Using Objects and Methods
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 309

Multiple choice Unit 1: Using Objects and Methods
Given the following code, what is the final value stored in p? String word =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 310

Multiple choice Unit 1: Using Objects and Methods
The State class, described earlier, contains the method private void calculatePercentChange() { / / Calculates and saves the percent change in population from…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 301 of 2,811
Page 31 of 282