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

1. In recursion, it is unnecessary to decide whether a stopping case has been reached.

2. A recursive function must not return a value.

1. False
Explanation: In recursion, termination requires that a stopping case be reached. It is necessary to decide whether this case has been reached.
2. False
Explanation: Value returning and void recursive functions are certainly permitted.

Computer Science & Information Technology

You might also like to view...

How many colors are used in the RGB system?

A) 2 B) 3 C) 16 D) 255

Computer Science & Information Technology

To use the Java class ArrayList, you must import the package:

a. java.awt b. java.io c. java.util d. java.container

Computer Science & Information Technology