Question 1.What is the .NET Framework?
Answer: The .NET framework is a framework introduced by Microsoft Where Developers can use to develop applications, install and run the application on Windows operating system .The application may be
Answer: The .NET framework is a framework introduced by Microsoft Where Developers can use to develop applications, install and run the application on Windows operating system .The application may be
- Console Applications
- Windows Forms Applications
- Windows Presentation Foundation
(WPF) Applications
- Web Applications
- Web Services
- Windows Services
- Windows Communications Foundation (WCF)
- Windows Workflow Foundation(WF)
Question 2. What is CLR?
Answer: The CLR stands for Common Language Runtime and it is an Execution Environment. The main function of Common Language Runtime (CLR) is to convert the Managed Code into native code and then execute the program. The Managed Code compiled only when it is needed, that is it converts the appropriate instructions when each function is called. The Common Language Runtime (CLR)’s just in time (JIT) compilation converts Intermediate Language (MSIL) to native code on demand at application run time.
CLR services
Answer: The CLR stands for Common Language Runtime and it is an Execution Environment. The main function of Common Language Runtime (CLR) is to convert the Managed Code into native code and then execute the program. The Managed Code compiled only when it is needed, that is it converts the appropriate instructions when each function is called. The Common Language Runtime (CLR)’s just in time (JIT) compilation converts Intermediate Language (MSIL) to native code on demand at application run time.
CLR services
- Assembly Loader
- Type Checker
- COM marshalled
- Debug Manager
- Thread Support
- IL to Native compiler
- Exception Manager
- Garbage Collector
Question 3. What is CTS?
Answer: .Net uses Common Type System (CTS) for Language Interoperability. CTS defines the predefined data types that are available in IL, so that all languages that target the .NET framework will produce the compiled code that is ultimately based on these types. CTS ensures that a data type defined in a VB.net will be understood by C#. For example, VB.Net uses “Integer” to define the data type Integer. C# uses “int” to define the data type Integer. When VB.Net code is compiled, it will convert the Integer to Int32. Since C# refers Int to Int32, VB.Net code will be understood by C#.
Answer: .Net uses Common Type System (CTS) for Language Interoperability. CTS defines the predefined data types that are available in IL, so that all languages that target the .NET framework will produce the compiled code that is ultimately based on these types. CTS ensures that a data type defined in a VB.net will be understood by C#. For example, VB.Net uses “Integer” to define the data type Integer. C# uses “int” to define the data type Integer. When VB.Net code is compiled, it will convert the Integer to Int32. Since C# refers Int to Int32, VB.Net code will be understood by C#.
Question 4. What is CLS?
Answer: One of the important
goals of .NET Framework is to support Multiple Languages. This is achieved by
CLS. For multiple languages to interoperate, it is necessary that they should
go on in common in certain features such as Types that are used. For example,
every language has its own size and range for different data types. Thus CLS is
the agreement among language designers and class library designers concerning
these usage conventions.
Question 5. What is managed code?
Answer: The resource, which is within your application domain is, managed code. The resources that are within domain are faster.
The code, which is developed in .NET framework, is known as managed code. This code is directly executed by CLR with help of managed code execution. Any language that is written in .NET Framework is managed code.
Managed code uses CLR which in turn looks after your applications by managing memory, handling security, allowing cross - language debugging, and so on.
Question 6. What is MSIL?
Answer: Managed code is code that can be executed and managed by .NET Framework Common Language Run time When we compile our .NET code then it is not directly converted to native/binary code; it is first converted into intermediate code known as MSIL code which is then interpreted by the CLR. MSIL is independent of hardware and the operating system.
Question 7. What is JIT?
Answer: Just- in- time compiler is a complier which is used to convert intermediate language (IL) code into native code.
Question 8. What are the advantages of .Net?
Question 5. What is managed code?
Answer: The resource, which is within your application domain is, managed code. The resources that are within domain are faster.
The code, which is developed in .NET framework, is known as managed code. This code is directly executed by CLR with help of managed code execution. Any language that is written in .NET Framework is managed code.
Managed code uses CLR which in turn looks after your applications by managing memory, handling security, allowing cross - language debugging, and so on.
Question 6. What is MSIL?
Answer: Managed code is code that can be executed and managed by .NET Framework Common Language Run time When we compile our .NET code then it is not directly converted to native/binary code; it is first converted into intermediate code known as MSIL code which is then interpreted by the CLR. MSIL is independent of hardware and the operating system.
Question 7. What is JIT?
Answer: Just- in- time compiler is a complier which is used to convert intermediate language (IL) code into native code.
Question 8. What are the advantages of .Net?
Answer:
·
·
Object-Oriented
Programming – Using C# and .NET which are based on object-oriented Concepts.
·
Language Independence
– All the languages which are supported by .Net (VB.NET, C#, J#, and managed
C++) are compiled into common Intermediate Language (IL). So IL makes sure that
languages are interoperable.
·
Efficient Data Access
– ADO.NET provides fast and efficient way to access RDBMS, file system etc.
·
Code Sharing – To
share code between applications, a new concept called assembly is introduced.
Assemblies supports versioning.
·
Improved Security
·
Support Dynamic Web
Pages – Using ASP.NET
·
Support for Web
Services
g Better Design Pattern
Question 9. What
is an assembly?
Answer: An Assembly is a logical unit of deployment or basic building block of .NET Framework applications. It is basically compiled code that can be executed by the CLR. An assembly is a collection of types and resources that are built to work together and form a logical unit of functionality. An Assembly can be a DLL or exe depending upon the project that we choose.
Assemblies are basically the following two types:
Answer: An Assembly is a logical unit of deployment or basic building block of .NET Framework applications. It is basically compiled code that can be executed by the CLR. An assembly is a collection of types and resources that are built to work together and form a logical unit of functionality. An Assembly can be a DLL or exe depending upon the project that we choose.
Assemblies are basically the following two types:
- Private Assembly
- Shared Assembly
Question 10. What are the contents of assembly?
Answer:
Answer:
- An Assembly is a basic unit of
application deployment and versioning.
- An Assembly is also called the
building block of a .NET application.
- An Assembly is either a .exe or
.dll file.
An Assembly structure consists of the following parts:
- Assembly manifests (name,
language and version).
- CIL code (logic part).
- Type information (Datatype).
- Resources.
No comments:
Post a Comment