Correct Answer
verified
Multiple Choice
A) sort lists stored in arrays.
B) perform binary search on arrays.
C) quickly sort and search arrays.
D) All of the above
E) None of the above
Correct Answer
verified
Multiple Choice
A) is 0.
B) is 1.
C) is depth / 2.
D) is 1 / (depth * 3.1415) .
E) depends on the problem being solved.
Correct Answer
verified
Multiple Choice
A) Bjarne Stroustrup.
B) Tony Gaddis.
C) C.A.R. Hoare.
D) Judy Walters.
E) None of the above
Correct Answer
verified
Multiple Choice
A) a static function.
B) a prototyped function.
C) trapped in an infinite chain of recursive calls.
D) a dynamic function.
E) None of the above
Correct Answer
verified
Multiple Choice
A) shell sort
B) quicksort
C) binary sort
D) red/black sort
E) None of the above
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) three sublists.
B) two sublists and a pivot.
C) two pivots and a sublist.
D) three pivots.
E) None of the above
Correct Answer
verified
Multiple Choice
A) return statement.
B) base case.
C) closing curly brace.
D) last parameter.
E) None of the above
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) computes the factorial on an integer k passed to it as parameter.
B) returns the value 1 if it is passed a value of 0 for the parameter k.
C) does not correctly handle its base case.
D) works for all non-negative values of k, but not for negative numbers.
E) None of the above
Correct Answer
verified
Multiple Choice
A) direct recursion.
B) indirect recursion.
C) function call cycling.
D) perfect recursion.
E) None of the above
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) cause an infinite chain of recursive calls.
B) return after a chain of 2 recursive calls.
C) return after a chain of 3 recursive calls.
D) return after a chain of 4 recursive calls.
E) None of the above
Correct Answer
verified
Multiple Choice
A) compute factorials.
B) find the greatest common divisor of two integers (GCD) .
C) program things that cannot be programmed without recursion.
D) All of the above
E) Both A and B, but not C
Correct Answer
verified
Multiple Choice
A) return 0 and stop.
B) return FALSE and stop.
C) cause an infinite chain of recursive calls.
D) reach the NULL terminator and stop.
E) None of the above
Correct Answer
verified
Multiple Choice
A) level
B) breadth
C) type
D) depth
E) None of the above
Correct Answer
verified
Multiple Choice
A) dynamic
B) static
C) recursive
D) data validation
E) None of the above
Correct Answer
verified
Showing 1 - 20 of 20
Related Exams