C#.NET Multiple choices

Total available count: 28
Subject - Microsoft Technologies
Subsubject - C#.NET

Which of the following declaration is wrong?







A declaration statement declares a new variable or constant with an expression, It assigns a value for the variable and an assignment for constant. A declaration statement enclosed in a semicolon " ". 

Example program to declare a statement:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program
 static void Main()

   int x = 2, y = 3, z = 5;
   Console.WriteLine("{0} {1} {2}", x, y, z);


In the above code snippet, it has shown that how we have declared the statement. In this program, we have taken three int values x, y, z. We are defining the value of x As 2, the value of y As 3, and the value of z As 5. we have given a console.writeline("{0} {1} {2}",x, y, z). which prints the output values as 2, 3, 5.

Next 5 multiple choice(s)


How to use a keyword as an identifier?


Which of the following access modifier added in C# 7.2?


Which of the following keyword is quite opposite to sealed?


Which of the following notation is incorrect?


What is the difference between long and double?