Practice mode C#

What is the C# compiler’s direct output when it compiles source code into an assembly?

Correct answer C. Common Intermediate Language (CIL) plus metadata

Explanation

The C# compiler does not produce CPU-specific machine code. It emits Common Intermediate Language (also called MSIL) together with metadata describing the types. At run time the CLR's just-in-time compiler turns the CIL into native code for the actual processor. Ahead-of-time options exist, but the normal compiler output is CIL, which is why one assembly can run on different architectures.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.