42.
What is the purpose of the 'unchecked' keyword in C#?

49.
What will be the output of the following C# code?
class Program
{
    static void Main(string[] args)
    {
        int i;
        for ( i = 0; i < 5; i++)
        {
 
        }
        Console. WriteLine(i);
        Console. ReadLine();
    }
}

50.
For the following C# code select the relevant solution for 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();
}

Read More Section(Basic Syntax and Data Types in C Sharp)

Each Section contains maximum 100 MCQs question on Basic Syntax and Data Types in C Sharp. To get more questions visit other sections.