Exam 8: Recursion
Exam 1: P A C++ Primer25 Questions
Exam 2: Introduction to Software Design24 Questions
Exam 3: Program Correctness and Efficiency25 Questions
Exam 4: Inheritance and Class Hierarchies25 Questions
Exam 5: Sequential Containers25 Questions
Exam 6: Stacks24 Questions
Exam 7: Queues and Deques25 Questions
Exam 8: Recursion25 Questions
Exam 9: Trees25 Questions
Exam 10: Sets and Maps25 Questions
Exam 11: Sorting25 Questions
Exam 12: Self-Balancing Search Trees25 Questions
Exam 13: Graphs25 Questions
Exam 14: Advanced C++ Topics, and Overview of UML25 Questions
Select questions type
Suppose you are recursively searching an array filled with 512 items . If each subdivision returns two smaller arrays with n/2 items, how many smaller arrays are generated at the third level of the search?
(Multiple Choice)
4.8/5
(33)
The altered version of print_chars_reverse defined below will output the characters of the string argument in reverse order.


(True/False)
4.7/5
(35)
To test the binary search algorithm, you must test vectors with an even number of elements and vectors with an odd number of elements.
(True/False)
4.9/5
(38)
The iterative version of a function always requires significantly more memory that a recursive version.
(True/False)
4.8/5
(48)
The iterative and recursive algorithms used to compute a factorial value are O(__________), because the number of loop repetitions or recursive calls increases linearly with n.
(Multiple Choice)
4.9/5
(34)
Showing 21 - 25 of 25
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)