Home / Programming MCQs / C# MCQs / Question

S

Shivam • 8.86K Points
Tutor III

Q. What will be the output of the following C# code?

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

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Related MCQs on C#

Which of the following statements are correct about arrays used in C#.NET? 1. Arrays can be rectangular or jagged. 2. Rectangular arrays have similar rows stored in adjacent memory locations. 3. Jagged arrays do not have an access to the methods of System.Array Class. 4. Rectangular arrays do not have an access to the methods of System.Array Class. 5. Jagged arrays have dissimilar rows stored in non-adjacent memory locations.

Which of the following statements are correct about arrays used in C#.NET? 1. Arrays can be rectangular or jagged. 2. Rectangular arrays have similar rows stored in adjacent memory locations. 3. Jagged arrays do not have an access to the methods of System.Array Class. 4. Rectangular arrays do not have an access to the methods of System.Array Class. 5. Jagged arrays have dissimilar rows stored in non-adjacent memory locations.

Arrays in C# are ______ objects.

What is a delegate?

Minimum and Maximum range of values supported by ‘float’ data type are?

The protected access modifier defines a member that can be accessible within ___.

Which of the following statements are correct about JIT? 1. JIT compiler compiles instructions into machine code at run time. 2. The code compiler by the JIT compiler runs under CLR. 3. The instructions compiled by JIT compilers are written in native code. 4. The instructions compiled by JIT compilers are written in Intermediate Language (IL) code. 5. The method is JIT compiled even if it is not called

An instance class member is referred by using the format____________.

To output the value of multidimensional array, Console.WriteLines(___)

A Constructor -

Learn All C# MCQs