Verityprep
Question Bank · Unit 4

AP® Computer Science A Data Collections Practice Questions

Work through AP Computer Science A practice questions on Data Collections, 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 591–600 of 1,222
  1. 591
  2. 592
  3. 593
  4. 594
  5. 595
  6. 596
  7. 597
  8. 598
  9. 599
  10. 600

Question 591

Multiple choice Recursion
What does puzzle(10) return?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 592

Multiple choice Recursion
What happens when mystery(11) is called using Java int arithmetic?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 593

Multiple choice Recursion
What does enigma(9) return?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 594

Multiple choice Recursion
What does printStars(15) print? public void printStars(int n) { if(n==1)…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 595

Multiple choice Recursion
What does weird("Hello") return? public String weird(String s) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 596

Multiple choice Sorting And Searching
Array arr2 has been defined and initialized as follows. int[] arr2 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}; If the array is being searched for the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 597

Multiple choice Recursion
public int factors(int number) { return factors(number, number - 1, 0); } public int factors(int number, int check, int count) { if (number % check ==…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 598

Multiple choice Recursion
public int factors(int number) { return factors(number, number - 1, 0); } public int factors(int number, int check, int count) { if (number % check == 0) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 599

Multiple choice Recursion
What does function(24,3) return?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 600

Multiple choice Recursion
Consider this recursive problem. In elementary school, we learned that if you add up the digits of a number and get a sum of 9, then that number is divisible by…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 591 of 1,222
Page 60 of 123