In the following method, what is the base case?

```
static int xMethod(int n) {
if (n == 1)
return 1;
else
return n + xMethod(n - 1);
}
```
a. n is 1.
b. n is greater than 1.
c. n is less than 1.
d. no base case.


a. n is 1.

Computer Science & Information Technology

You might also like to view...

Which of the following is an automated mechanism used to assign IP addresses, subnet masks, default gateways, DNS servers, WINS servers, and other IP configuration information to network devices?

A. IPX B. DHCP C. AIX D. X.25

Computer Science & Information Technology

You add a button to the Quick Access Toolbar from the ________ dialog box

A) Excel Options B) Developer C) Commands D) Backstage view

Computer Science & Information Technology

The_____ converts DC to AC for the CCFL backlights

Fill in the blank(s) with correct word

Computer Science & Information Technology

To ensure that a workbook displays the same way on different computers, publish it in _____ format.

A. ?pdf B. ?ods C. ?xps D. ?xltm

Computer Science & Information Technology