Suppose that a recursive function with integer parameter n has a base case of 0, and for each non-base case, the function makes a recursive call with argument n+1. If the function is initially called with an actual argument of n = 3, the function call will

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


Answer: A) cause an infinite chain of recursive calls.

Computer Science & Information Technology

You might also like to view...

In the accompanying figure, the item marked ____ is the workplace switcher.

A. 1 B. 2 C. 4 D. 5

Computer Science & Information Technology

Match the following items and descriptions:

I. Header II. Watermark III. Margins IV. Footer V. Symbol A. Area of blank space that appears at the top, bottom, left, and right sides of a document B. Text or graphics that displays behind text on a page C. Graphic or character not usually found on a keyboard D. One or more lines at the top of each page, containing such items as author or file name E. One or more lines at the bottom of each page, often including a page number

Computer Science & Information Technology

The _____ lock allows a user to have a word known to that user to unlock the screen

Fill in the blank(s) with correct word

Computer Science & Information Technology

What is the primary task of an operating system?

a. Rename files b. Reset operating passwords c. Operate the processing system d. Store and organize your files and folders

Computer Science & Information Technology