Multiple choice .net vb

How many levels of compilation happens in .NET Framework

  1. One

  2. Two

  3. Three

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

.NET Framework has two compilation levels: first, source code compiles to Intermediate Language (IL) by language compilers (C#/VB.NET); second, IL compiles to native machine code by the Just-In-Time (JIT) compiler at runtime.

AI explanation

To answer this question, we need to understand the compilation process in the .NET Framework.

The .NET Framework uses a two-step compilation process.

The first step is the compilation of source code into an intermediate language (IL) known as Microsoft Intermediate Language (MSIL) or Common Intermediate Language (CIL). This step is performed by the compiler, which converts the source code into IL instructions.

The second step is the Just-In-Time (JIT) compilation, which occurs at runtime. The IL code is compiled into machine code specific to the target platform. This compilation is performed by the Common Language Runtime (CLR), which is responsible for executing .NET applications.

Therefore, the correct answer is B) Two, as there are two levels of compilation in the .NET Framework.