Show the output of the following code

```
public class Test1 {
public static void main(String[] args) {
System.out.println(f2(2, 0));
}

public static int f2(int n, int result) {
if (n == 0)
return 0;
else
return f2(n - 1, n + result);
}
}
```
a. 0
b. 1
c. 2
d. 3


a. 0

Computer Science & Information Technology

You might also like to view...

____ browsers were incapable of displaying images.

A. PDA B. Text-based C. Graphical D. Markup

Computer Science & Information Technology

A resampling problem called ____ results in a loss of image sharpness, more visible at higher magnifications.

a. aliasing b. blur c. halos d. none of the above

Computer Science & Information Technology

Working with form sections is similar to working with report sections although reports have more sections than forms

Indicate whether the statement is true or false

Computer Science & Information Technology

Windows Vista offers an option called "Adjust for best performance" that displays typical Vista visual effects

Indicate whether the statement is true or false

Computer Science & Information Technology