Which of the following statements is correct about the C#.NET code snippet given below? enum color : byte { red = 500, green = 1000, blue = 1500 }

Review the verified answer and explanation for this DemoPaper-Pakistan past-paper question on CampusFin.

Which of the following statements is correct about the C#.NET code snippet given below? enum color : byte { red = 500, green = 1000, blue = 1500 } Answer: Since 500, 1000, 1500 exceed the valid range of byte compiler will report an error.

Question context

This question is part of 🧩 C# Programming within the broader 💻 Programming subject and appears in the DemoPaper-Pakistan preparation collection. Reviewing the answer together with nearby questions helps reinforce the underlying concept and identify how it may appear in competitive exams.