1)

For the given set of code, select the correct option from the following statements. 

static void Main(string[] args)
{
int num1 = 50;
int num2 = 100;
long total;
total = num1 + num2;
Console.WriteLine("Total is : " +total);
Console.ReadLine();


A) Compiler will throw runtime error

B) No error generation since the conversion is implicit type

C) To solve the problem we need to specify the datatype conversion externally

D) None of the mentioned

Answer:

Option B

Explanation:

Since 'int' is a subset of 'long' datatype, explicit conversion is not needed
Output: Total is : 150.