Verityprep
Question Bank

AP® Computer Science A Practice Questions

Work through AP Computer Science A practice 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 371–380 of 3,140
  1. 371
  2. 372
  3. 373
  4. 374
  5. 375
  6. 376
  7. 377
  8. 378
  9. 379
  10. 380

Question 371

Multiple choice Unit 1: Using Objects and Methods
Evaluate the following…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 372

Multiple choice Unit 1: Using Objects and Methods
Which of the following…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 373

Multiple choice Unit 1: Using Objects and Methods
Consider the following code snippet: public class Main { public static void main(String[] args) { int a = 5;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 374

Multiple choice Unit 1: Using Objects and Methods
Consider the following code snippet. public static void main(String args[]){ final…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 375

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

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

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

Multiple choice Unit 1: Using Objects and Methods
Assuming all other statements in the program are correct, each of…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 379

Multiple choice Unit 1: Using Objects and Methods
Assuming all other statements in the program are correct, each of the following statements…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 380

Multiple choice Unit 1: Using Objects and Methods
Assuming all other statements in the program are correct, each of…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 371 of 3,140
Page 38 of 314