Intermediate C#
Q83 / 100

What is top-level statements in .NET 6+?

Correct! Well done.

Incorrect.

The correct answer is B) A C# 9 feature allowing program entry point code without explicit Main() method or class, reducing boilerplate

B

Correct Answer

A C# 9 feature allowing program entry point code without explicit Main() method or class, reducing boilerplate

Explanation

A file with just Console.WriteLine("Hello"); is a valid .NET 6 program — the compiler generates the Program class and Main() method implicitly.

Progress
83/100