1.

Which of the following C#.NET code snippets will correctly print "Hello C#.NET"?

A. <pre><code class="csharp">import System; namespace IndiabixConsoleApplication { class MyProgram { static void Main(string[] args) { Console.WriteLine("Hello C#.NET"); } } }</code></pre>
B. <pre><code class="csharp">using System; namespace IndiabixConsoleApplication { class MyProgram { static void Main(string[ ] args) { WriteLine("Hello C#.NET"); } } }</code></pre>
C. <pre><code class="csharp">using System.Console; namespace IndiabixConsoleApplication { class MyProgram { static void Main (string[ ] args) { WriteLine("Hello C#.NET"); } } }</code></pre>
D. <pre><code class="csharp">using System; namespace IndiabixConsoleApplication { class MyProgram { static void Main(string[] args) { Console.WriteLine("Hello C#.NET"); } } }</code></pre>
Answer» E.


Discussion

No Comment Found

Related MCQs