Quiz · Your first program · lesson 7 of 7Quiz — top-level statementsWhat are top-level statements, and what does the compiler generate for them?[A]A .NET 10 feature of single-file apps run with dotnet run hello.cs: there the compiler builds a class Program around the statements, but any project with a project file still needs a Main method written by hand.[B]Since C# 9, statements may sit right in one file, with no class and no Main. The compiler builds a class Program with an entry-point method around them, and only one file of a program may hold such statements.[C]Since C# 9, statements may sit right in a file, with no class and no Main. The compiler builds a separate class with its own Main for each such file, so every file of a program may hold them.[D]A scripting mode of C# 9: the runtime reads statements written in one file line by line, without compiling them into IL, so no class and no entry-point method are ever built for them.← BackThe Main methodNext module →02 · Variables and types