Dot Net Interview Questions – Set 11

How many types of memories are there in .Net?

There are two types of memories in .Net

  • Stack memory
  • Heap Memory

What is the application domain?

ASP.NET introduces a concept of application domain or AppDomain which is like a lightweight process that acts like both container and boundary. The .NET run-time uses the AppDomain as a container for data and code. The CLR allows multiple .NET applications to run in a single AppDomain.

What is FCL?

FCL stands for Framework Class Library, and is a collection of reusable types, including classes, interfaces, and data types included in the .NET Framework. It is used for developing a wide variety of applications, as it provides access to system functionality.

What is an Interface?

An interface is a declaration for a set of class members. It is a reference type that contains only abstract members such as Events, Methods, Properties, etc.

What is CLR?

CLR stands for Common Language Runtime. It is one of the most important components of the .Net framework. It provides building blocks for many applications.

An application built using C# gets compiled by its own compiler and is converted into an Intermediate language. This is then targeted to CLR. CLR does various operations like memory management, security checks, assemblies to be loaded and thread management. It provides a secure execution environment for applications.

What are the different parts of an Assembly?

The different parts of an Assembly are:

i. Manifest – Also known as the assembly metadata, it has information about the version of an assembly.

ii. Type Metadata – Binary information of the program.

iii. MSIL – Microsoft Intermediate Language code.

iv. Resources – List of related files.

Is it possible to change the index of primary key on table?

No.

What is inheritance?

Inheritance is a method for creating hierarchies of objects wherein one class, called a subclass, is based on another class, called a base class.

Why can’t you specify access modifiers for items in an interface?

It is always public

What are the design principles used in .NET?

.Net uses the SOLID design principle which includes the following:

  • Single responsibility principle (SRP)
  • Open-Closed Principle (OCP)
  • Liskov substitution principle (LSP)
  • Interface segregation principle (ISP)
  • Dependency inversion principle (DIP)