Home / CSE MCQs / C#.Net MCQs :: Discussion

Discussion :: C#.Net MCQs

  1. Select output of the given set of Code :

    static void Main(string[] args)
    {
        String name = "Dr.Gupta";
        Console.WriteLine("Good Morning" + name);
    }
  2. A.
    Dr.Gupta
    B.
    Good Morning
    C.
    Good Morning Dr.Gupta
    D.
    Good Morning name

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    How to intialize a string variable and concatenate string using '+' operator. Output:Good Morning Dr.Gupta.


Be The First To Comment