.NET Flashcards

1
Q

4 majros component of .Net architecture

A

Common language specification (CLS) defines how objects are implemented so they work everywhere .NET works.
CLS is a subset of Common Type System (CTS) – which sets a common way to describe all types

Framework class library (FCL) is a standard library that collects reusable classes, interfaces and value types

Common language runtime (CLR) is the virtual machine that runs the framework and manages the execution of .NET programs

Visual Studio is used to create standalone applications, interactive websites, web applications and web services

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

.NET Framework

A

to create Windows desktop and server-based applications

Memory management
Type and memory safety
Security
Networking
Application deployment
Data structures
APIs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

.NET Core

A

There are cross-platform needs
Using Microservices
Working with Docker containers
You have high-performance and scalable system needs
You are running multiple .NET versions side-by-side.
You want command line interface (CLI) control

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

.NET hierarchy

A

.NET framework 2002
.Net Core 2016
.NET 2020

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is .NET?

A

Understanding .NET Framework
What is .NET?

Application Development Platform, to build Desktop, Web and Mobile Apps.

Developed by Microsoft, in 2002.

Provides fully managed, secured application execution environment.

Supports multiple languages such as C#, VB, VC++ etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Modules & Apps
ASP.Net

A

WebSites

Web Applications

WebServices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Common Language Infrastructure (CLI)

A

Application Source Code ->

Microsoft Intermediate Language ->

Common Language Runtime CLR ->

Native Machine Code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Common Language Runtime (CLR) and its component

A

“Execution Engine” for all .net languages.

Code-Execution Environment that executes all types of .net applications.

Applications developed in any .net language runs based on “CLR” only.
CLR is a part of .NET Framework; pre-installed in Windows.

CLR Components:
Class Loader
Memory Manager
Garbage Collector
JIT Compiler
Exception Manager
Thread Manager
Security Manager

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Components of CLR

A

Class Loader:
Loading classes from compiled source code to memory.
Loads a class, when it is needed (before creating object).

Memory Manager:
Allocating necessary memory for objects.
When an object is created in the code, certain amount of memory will be allocated for the object in application’s “heap”.

Garbage Collector:
Freeing (deleting) memory of objects.
Identifies all unreferenced objects and delete them in memory (RAM).

JIT (Just-In-Time) Compiler:
Convert the MSIL Code into Native Machine Language.
Compiles the code of a class, when it is needed (before executing that particular class).

Exception Manager:
Raise notifications while run-time errors.
Creates exception logs.

Thread Manager:
Create threads (background process) to execute the code.

The entire program is treated as “Main thread”.
Developer can create sub threads (child threads) to do background processes.

Security Manager:
Verifies whether the application has permission to access system resources or not.
Before executing the application, it verifies whether the application has not attacked by malicious programs & has necessary permissions to access files / folders and hardware resources.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

.NET Framework main 2 things

A

CLR Run Time Engine That executes app
+
Framework Class Library- collection of classes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Base Class Library (BCL)

A

Contains a set of pre-defined classes that can be used in all types of .net applications & languages for general I/O operations, type conversion, creation of threads etc.

Eg:
Console
String
StringBuilder
Convert
Thread
Task
etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

ADO.NET

A

Contains a set of pre-defined classes that can be used in all types of .net applications & languages for connecting to databases, retrieving data from databases, inserting, updating, deleting rows etc.

Eg:
SqlConnection
SqlCommand
SqlDataAdapter
SqlDataReader
etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

WinForms

A

Contains a set of pre-defined classes that can be used in Windows GUI applications for development of GUI elements such as form, textbox, button, checkbox, radio button, dropdownlist etc.

Eg:

Form

Label

Button

Text Box

etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Windows Presentation Foundation (WPF)

A

Contains a set of pre-defined classes that can be used in Rich Windows GUI applications for development of GUI elements such as window, textbox, button, checkbox, radio button, dropdownlist etc.

Eg:

Window

Label

Button

Text Box

etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Active Server Pages (ASP.NET)

A

Contains a set of pre-defined classes that can be used in Web Applications for development of GUI elements such as page, textbox, button, checkbox, radio button, dropdownlist etc.

Eg:

Page

Label

Button

Text Box

etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Common Language Specification (CLS)

A

Contains a set of rules (concepts) that are common to all .net languages such as C#.NET, VB.NET etc.

Common rules of CLS:

CTS (Common Type System): Contains data types such as Int32, Int64, Single, Double etc.

Classes & Objects

Reference Variables

Method Parameters

Generics

etc.

17
Q

.NET Core

A

Introduced in 2016.

Microsoft’s Application Development Platform to develop any desktop, web, mobile and embedded (IoT) applications.

Supports Windows, LINUX, Mac, Android, iOS, Windows Phone devices.

Versions: 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1

Mainly used in Xamarin and ASP.NET Core.

Open Source (via MIT license)

Contains the class library, which is a subset of .NET Framework.

Doesn’t contain any Windows-specific classes / run time services.

C# / VB.NET can used for writing code of .NET Core.