Examlex

Solved

What Is the Output of the Following Code Fragment

question 59

Multiple Choice

What is the output of the following code fragment?
Int i = 1;
Int sum = 0;
While (i <= 15)
{
Sum = sum + i;
I++;
}
System.out.println("The value of sum is " + sum) ;


Definitions:

Discount Rate

This refers to the interest rate employed in DCF calculations to figure out the present value of upcoming cash flows.

Net Present Value

A financial measure that determines the net present value by subtracting the total outgoing cash flows from the incoming cash flows over a certain time period.

Telecommunications Equipment

Hardware used in the transmission, reception, and processing of data and communication signals.

Investment

The allocation of resources, such as time, money, or effort, in hope of generating a future return or profit.

Related Questions