Limited access

Upgrade to access all content for this subject

Consider the following method.

 public static int mystery(int x)
 {
  if (x == 0)
     return 0;
  else
     return (x + mystery(x / 2) + mystery(x / 4));
 }

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

A

0

B

1

C

12

D

27

E

39

Select an assignment template