Home / C# Programming / Control Instructions - c# :: Discussion

Discussion :: Control Instructions - c#

  1. What will be the output of the C#.NET code snippet given below? int val; for (val = -5; val 5; val++)
    {
       switch (val)
       {
               case 0:
                 Console.Write ("Fresher");
                 break;
          }
         

          if (val > 0)
              Console.Write ("B");
          else if (val 0)
              Console.Write ("X");

     }

     

  2. A.

    XXXXXIndia

    B.

    IndiaBBBBB

    C.

    XXXXXIndiaBBBBB

    D.

    BBBBBIndiaXXXXX

    E.

    Zero

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    No answer description available for this question.


Be The First To Comment