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.

Subtopic: Using Objects Clear filter

Questions 361–370 of 454
  1. 361
  2. 362
  3. 363
  4. 364
  5. 365
  6. 366
  7. 367
  8. 368
  9. 369
  10. 370

Question 361

Multiple choice Using Objects
A point should be accepted only if its actual distance from the origin is at most 4. The code below is incorrect. Which offered pair x, y is accepted…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 362

Multiple choice Using Objects
Each coordinate can be any integer from -2 through 2, giving 25 possible ordered pairs (x, y). For how many of these pairs is inside true?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 363

Multiple choice Using Objects
What is printed? String label = "orbit";…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 364

Multiple choice Using Objects
Which offered value of label makes accepted true? boolean…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 365

Multiple choice Using Objects
What is printed? String word = "silver"; int start =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 366

Multiple choice Using Objects
The two expressions below are not equivalent for all nonempty tags. Which offered value of tag…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 367

Multiple choice Using Objects
The test below is intended to detect "ant" anywhere in word. Which offered…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 368

Multiple choice Using Objects
The first literal contains one space after go. What is printed? String a = "go "; String…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 369

Multiple choice Using Objects
The String s contains four characters. The ints a and b may be negative or positive. Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 370

Multiple choice Using Objects
What is printed? String word = "notebook";…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 361 of 454
Page 37 of 46