1.

What will be the output of the C#.NET code snippet given below? namespace IndiabixConsoleApplication { class Sample { public static void fun1() { Console.WriteLine("Bix1 method"); } public void fun2() { fun1(); Console.WriteLine("Bix2 method"); } public void fun2(int i) { Console.WriteLine(i); fun2(); } } class MyProgram { static void Main(string[ ] args) { Sample s = new Sample(); Sample.fun1(); s.fun2(123); } } }

A. <pre><code class="csharp">Bix1 method 123 Bixl method Bix2 method</code></pre>
B. <pre><code class="csharp">Bix1 method 123 Bix2 method</code></pre>
C. <pre><code class="csharp">Bix2 method 123 Bix2 method Bixl method</code></pre>
D. <pre><code class="csharp">Bixl method 123</code></pre>
E. <pre><code class="csharp">Bix2 method 123 Bixl method</code></pre>
Answer» B. <pre><code class="csharp">Bix1 method 123 Bix2 method</code></pre>


Discussion

No Comment Found

Related MCQs