C# DataType MCQs

Question 1: Which of the following data types can include maximum positive or negative, integer or float value?

Question 2: Which of the following data type will you use to store the monetary value?

Question 3: What will be the output of the following program?

public static void Main()
{
    float x = 30.423f;
    long y = 20L, 
    z = x+y;

    Console.WriteLine(z);
}

Question 4: Which of the following is a reference type?

Question 5: Which of the following is a value type?