149k views
5 votes
Assume there are four methods A, B, C, and D. If method A calls method B, method B calls method C, method C calls method D, and method D calls method A, which of the following methods is indirectly recursive?1) A2) B3) C4) D

1 Answer

2 votes

Answer:

The answer is A,B,C,D

Step-by-step explanation:

Because they are mutually recursive. Chains of calls in indirect recursion can contain multiple methods, as well as branches.

User Eshita Shukla
by
6.8k points