Home Python C Language C ++ HTML 5 CSS Javascript Java Kotlin SQL DJango Bootstrap React.js R C# PHP ASP.Net Numpy Dart Pandas Digital Marketing

.Net programming Interviews Questions


Programming concepts in .NET question and answers

What is the .NET Framework?

The .NET Framework is a software development platform developed by Microsoft that includes a large class library known as the Framework Class Library (FCL) and provides language interoperability across several programming languages.

Q.2 What is the Common Language Runtime (CLR)?

The CLR is the runtime environment of the .NET Framework that manages the execution of .NET programs, providing services like memory management, type safety, exception handling, and garbage collection.

Q.3What is the difference between .NET Framework, .NET Core, and .NET 5/6/7?

The .NET Framework is the original implementation for Windows only. .NET Core is a cross-platform, high-performance implementation. .NET 5/6/7 is the unified platform that consolidates .NET Framework and .NET Core into a single, cross-platform framework.


Q.4 What is the purpose of the Common Type System (CTS)?

The CTS defines all possible data types and programming constructs supported by the CLR, ensuring that objects written in different .NET languages can interact with each other seamlessly

Q.5 What is the Common Language Specification (CLS)?

Answer: The CLS is a set of basic language features needed by many applications. It provides a standard that enables interoperability among .NET languages by defining a subset of the CTS that all .NET languages can use.


Q.6.What is the purpose of the .NET Standard?

The .NET Standard is a formal specification of .NET APIs that are intended to be available on all .NET implementations. It provides a common base of APIs for any .NET application to use, ensuring consistent behavior across different environments.

Q.7 What are delegates in .NET?

Delegates are type-safe pointers to methods. They are used to pass methods as arguments to other methods and are essential for implementing event handling and callback methods

.

Q.8 What is LINQ?

LINQ (Language Integrated Query) is a set of features in .NET that provides query capabilities directly within .NET languages (like C# and VB.NET), allowing for querying collections, databases, XML, and more using a consistent syn.

Q.9 What is garbage collection in .NET?

Answer: Garbage collection is an automatic memory management feature in the CLR that reclaims memory occupied by objects that are no longer in use, thereby preventing memory leaks and optimizing application performance.

Q.10 What is the difference between managed and unmanaged code?

Answer: Managed code is code that runs under the management of the CLR, benefiting from services like garbage collection and type safety. Unmanaged code is executed directly by the operating system and requires manual memory management.




Advertisement





Q3 Schools : India


Online Complier

HTML 5

Python

java

C++

C

JavaScript

Website Development

HTML 5

Python

java

C++

C

JavaScript

Campus Learning

C

C#

java