General Knowledge Flashcards
What is C#?
C# is a modern, object-oriented, and type-safe programming language.
What are C#’s major features?
Garbage collected, nullable types, lambda expressions, Language Integrated Query (LINQ), asynchronous code, exception handling, and a unified type system.
Where are C# programs executed?
On .NET, a virtual execution system called the Common Language Runtime (CLR) and a set of class libraries.
Into what is C# source code converted when compiled?
Into Intermediate Language (IL), a middle point between source code and machine code.
Where is IL and program resources stored when compiled?
They get stored in an assembly.
How is the execution process of a C# program?
The assembly is loaded into the CLR and the CLR performs Just-In-Time (JIT) compilation to convert the IL code to native machine instructions.
What is “managed code”?
Code that’s executed by the CLR.
What is “unmanaged code”?
Code compiled into native machine language.
What does CTS mean?
Common Type Specification.
What are the key organizational concepts in C#?
Programs, namespaces, types, members, and assemblies.
What do programs contain?
Namespaces.
What do namespaces contain?
Types and other namespaces.
What do types contain?
Members.
What contains a program?
An assembly.
Is it required to specify a reference to another C# source file in a program in order to use its types?
No, C# programs join all their source files in a single unit and each source file can reference the types of the others without being explicit about the inclusion of the other source file.