Which of the following statements are correct for recursion?

a) Recursion is available only in the C and C++ languages.
b) Recursion is available in all programming languages.
c) Recursion is available in most modern programming languages, including C++.
d) Recursion is a preprocessor technique
e) Recursion, if used with care can be a useful programming technique.


c) Recursion is available in most modern programming languages, including C++. , and e) Recursion, if used with care can be a useful programming technique.

Part a) is in error, one has only to note almost any programming language designed since FORTRAN, though the student will only know the statement in a) from the text. Part b) is false, since there are some languages that do not support recursion. The text asserts “most modern languages … all functions [to be] recursive.” This is part c). Part d) The preprocessor may provide recursion, but this writer has never seen it used. e) This statement is a direct quote from the text. Experience with C++ and other programming languages bears this out.

Computer Science & Information Technology

You might also like to view...

A button becomes active when an InDesign document has been exported as PDF or ____________________ files.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

One of the ways to edit data in a cell is by selecting it and pressing the F5 key.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

What are the parts of the URL entry?

a. site b. index c. main d. key

Computer Science & Information Technology

In data flow diagrams (DFD), systems analysts call an entity that supplies data to the system a sink.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology