zuai-logo
zuai-logo
  1. AP Computer Science A
FlashcardFlashcardStudy GuideStudy GuideQuestion BankQuestion Bank

Recursion

Question 1
college-boardComputer Science AAPExam Style
1 mark

When implementing binary search recursively, what happens at each step if the target is not found?

Question 2
college-boardComputer Science AAPExam Style
1 mark

What is the space complexity of iterative mergesort on an array with 'n' distinct elements?

Question 3
college-boardComputer Science AAPExam Style
1 mark

What occurs when a merge sort algorithm reaches a base case during its execution?

Question 4
college-boardComputer Science AAPExam Style
1 mark

In a recursive merge sort algorithm, what is the role of the merge function?

Question 5
college-boardComputer Science AAPExam Style
1 mark

Which of the following best describes the result of a binary search on a sorted array that does not contain the target value?

Question 6
college-boardComputer Science AAPExam Style
1 mark

Which algorithm would likely be the most efficient for searching a sorted list of 1 million integers to determine if it contains the integer 742?

Question 7
college-boardComputer Science AAPExam Style
1 mark

What is the name of the method used in Java to initialize objects when they are created?

Feedback stars icon

How are we doing?

Give us your feedback and let us know how we can improve

Question 8
college-boardComputer Science AAPExam Style
1 mark

Which sorting algorithm is based on the divide-and-conquer approach?

Question 9
college-boardComputer Science AAPExam Style
1 mark

What would be the consequence for recursion depth if a ternary search tree's insertion method was modified such that nodes have up-to four child references organized by quartiles rather than thirds?

Question 10
college-boardComputer Science AAPExam Style
1 mark

How many times is the find specific item within a binary tree called recursively, assuming the tree is balanced and every node has two children?