Limited access

Upgrade to access all content for this subject

List Settings
Sort By
Difficulty Filters
Page NaN of 1946

Consider the following method:

 public int mystery(int x)
 {
     if (x == 1)
         return 3;
     else
         return (3 * mystery(x - 1));
 }

What is returned as a result of the call mystery(5)?

A

3

B

9

C

27

D

81

E

243

Accuracy 0%
Select an assignment template