Examlex

Solved

What Will Be the Result of Running the Following Code

question 12

Multiple Choice

What will be the result of running the following code fragment?
Int year = 0;
Double rate = 5;
Double principal = 10000;
Double interest = 0;
While (year < 10)
{
Interest = (principal * year * rate) / 100;
System.out.println("Interest " + interest) ;
}


Definitions:

Board Meeting

A formal gathering of the board of directors of an organization to discuss and make decisions on company affairs.

Chairperson

The person designated to lead or preside over a meeting, organization, committee, or other group gatherings.

Rules

Guidelines or principles that govern behavior and procedures within a specific context, such as groups or organizations, ensuring order and fairness.

Perspective Taking

The act of viewing a situation or understanding a concept from another individual's point of view.

Related Questions