What is a stopping state? What is a recursive step? What are the ways in which the computer provides run-time support for recursive methods? Why do some programmers feel that recursion should be avoided?

What will be an ideal response?


In a recursive method, the stopping state is a well-defined termination point. Each method must have a recursive step, in which the methods calls itself, and which must lead to the stopping state.

Computers provide the following support:
      * A call stack (storage area) created at startup.
      * An activation record (space for parameters, local variables, and return value).
      * When a method is returned, its activation record is removed from the call stack.

Naive programmers feel that because recursion repeatedly calls itself, and therefore takes longer and ties up memory, it should not be used. But it is a powerful programming technique.

Computer Science & Information Technology

You might also like to view...

__________ displays the variables and methods for all classes in a project.

a) Class View b) Object Browser c) Design View d) None of the above.

Computer Science & Information Technology

The following session performs the given tasks. Note that the > operator is used to redirect output of the man bash command to the commands.man file and the >> operator is used to append outputs of the man tcsh and man ping command to the commands.man file.

What will be an ideal response?

Computer Science & Information Technology

What does Cookies used for?

What will be an ideal response?

Computer Science & Information Technology

Files that can be accessed by more than one person can be found in a(n) ________

Fill in the blank(s) with correct word

Computer Science & Information Technology