Examlex

Solved

Example Code Ch 12-2

question 26

Multiple Choice

Example Code Ch 12-2
Given the following recursive factorial method:
public int factorial(int x)
{
if (x > 1) return x * factorial (x - 1) ;
else return 1;
}
-Refer to Example Code Ch 12-2: What is returned if factorial(0) is called?


Definitions:

Condensation Point

The temperature at which a gas becomes a liquid; the cooling point where gaseous substances convert into their liquid state.

Alkanes

Hydrocarbons containing only single bonds between carbon atoms, with the general formula CnH2n+2.

Solvents

Substances that dissolve a solute, resulting in a solution; typically liquids but can also be solid or gas.

Non-Reactive

A term describing substances that do not easily undergo chemical reactions or bond with other substances.

Related Questions