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.

Questions 291–300 of 681
  1. 291
  2. 292
  3. 293
  4. 294
  5. 295
  6. 296
  7. 297
  8. 298
  9. 299
  10. 300

Question 291

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 292

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 293

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 294

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 295

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 296

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 297

Multiple choice Primitive Types
Consider the following code segment: int a = 3; int b = 6; int c = 8; int d = a / b; c…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 298

Multiple choice Primitive Types
Consider the following code segment: 1 int a = 10; 2 double b = 10.7; 3 double c = a + b; 4 int d = a +…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 299

Multiple choice Primitive Types
Consider the following code segment: 1 int a = 10; 2 double b = 10.7; 3 int d = a + b; Line 3 will not compile in the code segment above. With which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 300

Multiple choice Primitive Types
Consider the following code segment. 1 int a = 11; 2 int b = 4; 3 double x = 11; 4 double y = 4; 5 System.out.print(a / b); 6…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 291 of 681
Page 30 of 69