Section 1 QuestPond Udemy Flashcards
What’s the difference between a .NET and C#?
.Net is a framework and C# is a programming Language.
What is an IL code?
Or What is JIT?
Intermediate language Code is the partailly compiled code. When a code has to run in a machine, it has to be compiled to a machine language. in .Net the code is first compiled to a IL language then JIT converts it to a machine language.
Who compiles the IL code and how does it work?
IL code is compiled by JIT (Just in time compiler).
Can we view the IL code?
we can view using ILDASM.exe
What .Net converts to IL code?
Answer on your own.
Does .Net supprots multiple languages?
Yes. It will get compiled to IL code.
What is CLR?
Common Language Runtime invokes JIT to compile to IL code. Cleans any unused objects by GC>
What is the difference between managed and unmanaged code?
Manages code runs under the control of CLR. Unmanaged code such as C++ dont use CLR.
What is Garbage Collector?
Garbage Collector is a background process which cleans unused Managed resources.
What is Garbage Collector?
Garbage Collector is a background process which cleans unused Managed resources.
for exmaple,
in a for loop create variable of object Customer..
for(i=0;i<=1000;i++) { Customer x = new Customer(); }
If we open in profiler, it we can see GC is cleaning those resources.
Garbage collector cleans managed code, how do we clean unmanaged code?
TBD
Explain the importance of CTS?
CTS (Common Type Syste,) ensures that data types defined in different languages gets compiled to a common data type.
What is CLS?
CLS is a set of rules or guidelines when nay .Net language adhers to these sets of guidelines it can be consumed by any other languages in .Net.
What is CLS?
CLS is a set of rules or guidelines when nay .Net language adhers to these sets of guidelines it can be consumed by any other languages in .Net.
What is heap and stack?
They are memory types in an application. Stack stores primitive data types such as int double. In heap strings and objects are stored.
In stack, both variable and value is stored.
In heap, the variable in stored nin stack and it refers to the object in Heap.