Which of the following is true with respect to conversion of data type.

static void Main(string[] args)

{

int num1 = 20000;

int num2 = 50000;

long total;

total = num1 + num2;

Console.WriteLine("Total is : " +total);

Console.ReadLine();

}

Compiler will generate runtime error

Conversion is implicit type, no error generation

Specifying data type for conversion externally will solve the problem

None of the options

Verified Answer
Correct Option - b

To get all Infosys Certified L1 Junior Microsoft .NET Programmer Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in