

Enumerations - Programming
Q1: Which of the following statements are correct about the C#.NET code snippet given below?
namespace AptitudeCrackConsoleApplication
(
class Sample
{
private enum color : int
{
red,
green,
blue
}
public void fun()
{
Console.WriteLine(color.red);
}
}
class Program
{
static void Main(string[ ] args)
{
// Use enum color here
}
}
} A 1, 2, 3
B 2, 3, 4
C 3, 4
D 4, 5
ANS:A - 1, 2, 3 No answer description is available. Let's discuss. |


For help Students Orientation
Mcqs Questions
One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.