1)

What will be the output of the following set of code?

static void Main(string[] args)
{
float a = 20.4f;
int b = 15;
float c;
c = a * (b + a) / (a - b);
Console.WriteLine("result is :" + c);
Console.ReadLine();
}


A) 133.7333

B) 132.7333

C) 135.7333

D) 133.76

Answer:

Option A

Explanation:

First (b+a) is calculated. Then this expression is multiplied by operand ‘a’ i.e a (b+a) and the whole result of numerator is combined and divided by denominator expression (a – b) .