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.

Questions 371–380 of 776
  1. 371
  2. 372
  3. 373
  4. 374
  5. 375
  6. 376
  7. 377
  8. 378
  9. 379
  10. 380

Question 371

Multiple choice Primitive Types
Evaluate the following…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 372

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 373

Multiple choice Primitive Types
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 Primitive Types
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 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 376

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 377

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 378

Multiple choice Primitive Types
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 Primitive Types
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 Primitive Types
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 776
Page 38 of 78