Answer the following statements true (T) or false (F)
1. When a recursive function directly calls itself, this is known as direct recursion.
2. Indirect recursion means that a function calls itself several times.
3. A recursive function cannot call a function other than itself.
4. Recursive algorithms tend to be less efficient than iterative algorithms.
1. TRUE
2. FALSE
3. FALSE
4. TRUE
Computer Science & Information Technology
You might also like to view...
Designing a program to avoid common errors is called __________ programming.
a. defensive b. detection c. direct d. validation
Computer Science & Information Technology
Which of the following is a type of malware that holds a computer hostage by locking the computer or encrypting the computer's files?
A. Ransomware B. Trojan horse C. Kidnapper D. Time bomb E. Virus
Computer Science & Information Technology