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

1. A recursive function can only return a value of type int or double.
2. The code of a function can contain at most one recursive call.
3. For some problems one can specify more natural solutions using recursion than using iteration.
4. A simple case is an instance of a problem that has a straightforward solution that requires no redefinition of the problem.
5. A recursive function must have at least one input argument.


1. False
2. False
3. True
4. True
5. False

Computer Science & Information Technology

You might also like to view...

Using layout managers ________.

a. provides the greatest level of control over a GUI’s appearance b. can be faster than creating a GUI with absolute positioning c. allows the programmer to specify the exact location of each GUI component with respect to the upper-left corner of the Container d. allows the programmer to specify the exact location of each GUI component with respect to the lower-left corner of the Container

Computer Science & Information Technology

The main basis for technical competition among manufacturers is _______.

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

Computer Science & Information Technology

A(n) _______________ is any switch that you can access and configure.

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

Computer Science & Information Technology

Desktop publishing software enables you to create newsletters and annual reports.

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

Computer Science & Information Technology