Assignment 1
Assignment 1
Assignment 1
Assignment - 1:
1. What is .NET?
Ans. .Net is a free cross-platform, open-source developer platform for building many different
types of applications. With .NET, you can use multiple languages, editors, and libraries to build
for web, mobile, desktop, games, IoT, and more. You can write .NET apps in C#, F#, or Visual
Basic:
Whether you're working in C#, F#, or Visual Basic, your code will run natively on any
compatible operating system. You can build many types of apps with .NET. Some are cross-
platform, and some target a specific set of operating systems and devices. .NET provides a
standard set of base class libraries and APIs that are common to all .NET applications. Each app
model can also expose additional APIs that are specific to the operating systems it runs on, or the
capabilities it provides. For example, ASP.NET is the cross-platform web framework that
provides additional APIs for building web apps that run on Linux or Windows. To extend
functionality, Microsoft and others maintain a healthy .NET package ecosystem. NuGet is a
package manager built specifically for .NET that contains over 100,000 packages.
It is used to develop applications for web, Windows, phone. Moreover, it provides a broad range
of functionalities and support.
This framework contains a large number of class libraries known as Framework Class Library
(FCL). The software programs written in .NET are executed in the execution environment, which
is called CLR (Common Language Runtime). These are the core and essential parts of the .NET
framework.
This framework provides various services like memory management, networking, security,
memory management, and type-safety.
The .Net Framework supports more than 60 programming languages such as C#, F#, VB.NET,
J#, VC++, JScript.NET, APL, COBOL, Perl, Oberon, ML, Pascal, Eiffel, Smalltalk, Python,
Cobra, ADA, etc.
Following is the .NET framework Stack that shows the modules and components of the
Framework.
4. What is CLR?
Ans. It is a program execution engine that loads and executes the program. It converts the
program into native code. It acts as an interface between the framework and operating system. It
does exception handling, memory management, and garbage collection. Moreover, it provides
security, type-safety, interoperability, and portability. A list of CLR components is given below:
CLS is a subset of the CTS. This means that all of the rules in the CTS also apply to the CLS,
unless the CLS rules are stricter. If a component is built using only the rules in the CLS, that is, it
exposes only the CLS features in its API, it is said to be CLS-compliant. For instance,
the <framework-libraries> are CLS-compliant precisely because they need to work across all of
the languages that are supported on .NET.
Establishes a framework that helps enable cross-language integration, type safety, and high-
performance code execution.
Defines rules that languages must follow, which helps ensure that objects written in different
languages can interact with each other.
Provides a library that contains the primitive data types (such as Boolean, Byte, Char, Int32,
and UInt64) used in application development.
It is used to develop Form-based applications, Web-based applications, and Web services. There
is a variety of programming languages available on the .Net platform, VB.Net and C# being the
most common ones. It is used to build applications for Windows, phones, web, etc. It provides a
lot of functionalities and also supports industry standards.
OLE Technology
COM Technology
.NET Technology
COM Technology: The technology of the Microsoft Windows family of the operating system,
Microsoft COM (Common Object Model) enables various software components to
communicate. COM is mostly used by developers for various purposes like creating reusable
software components, linking components together to build applications, and also taking
advantage of Windows services. The objects of COM can be created with a wide range of
programming languages.
C#.NET
VB.NET
C++.NET
J#.NET
F#.NET
JSCRIPT.NET
WINDOWS POWERSHELL
IRON RUBY
IRON PYTHON
C OMEGA
Common Language Runtime (CLR): CLR is the basic and Virtual Machine component of
the .NET Framework. It is the run-time environment in the .NET Framework that runs the codes
and helps in making the development process easier by providing various services such as
remoting, thread management, type-safety, memory management, robustness, etc... Basically, it
is responsible for managing the execution of .NET programs regardless of any .NET
programming language. It also helps in the management of code, as code that targets the runtime
is known as the Managed Code, and code that doesn’t target to runtime is known as Unmanaged
code.