McqMate
Q. |
Which is the most appropriate definition for recursion? |
A. | a function that calls itself |
B. | a function execution instance that calls another execution instance of the same function |
C. | a class method that calls another class method |
D. | an in-built method that is automatically called |
Answer» B. a function execution instance that calls another execution instance of the same function | |
Explanation: the appropriate definition for a recursive function is a function execution instance that calls another execution instance of the same function either directly or indirectly. |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet