.NET Interview Questions:
.NET Interview Questions:
-
Encapsulation
-
What is encapsulation, and how is it implemented in object-oriented programming?
-
How can private data members be accessed in the context of encapsulation?
-
-
Polymorphism
-
What are the different types of polymorphism?
-
Can you explain real-time use cases of polymorphism?
-
-
Constructor
-
What is a constructor, and what are its different types?
-
-
Static Keyword
-
What is the use of the
static
keyword in C#/.NET?
-
-
HTTP Methods
-
What is the difference between HTTP GET and PUT methods?
-
-
SQL Operations
-
What is the difference between
TRUNCATE
andDELETE
in SQL? -
What is a
ROLLBACK
in SQL, and when is it used?
-
-
Filters
-
What are filters in ASP.NET MVC/Core, and how do they work?
-
-
Routing
-
How does routing work in ASP.NET MVC/Core?
-
-
Authentication and Authorization
-
What is the difference between authentication and authorization?
-
How are authentication and authorization implemented in .NET?
-
-
SQL Keywords
-
What is the use of the
DENSE_RANK
keyword in SQL?
-
ReadOnly and Sealed
-
What is the difference between
readonly
andsealed
in C#?
-
Triggers
-
What are SQL triggers, and when should they be used?
-
.NET Framework vs .NET Core
-
What are the key differences between .NET Framework and .NET Core?
-
ViewData, TempData, ViewBag
-
What is the difference between
ViewData
,TempData
, andViewBag
in ASP.NET MVC?
-
Boxing and Unboxing
-
What is boxing and unboxing in C#, and why is it important?
-
Indexing
-
What is indexing in SQL or C#, and how does it improve performance?
.NET Interview Questions
-
Extension Methods
-
What are extension methods in C#, and how are they used?
-
-
IQueryable vs IEnumerable
-
What is the difference between
IQueryable
andIEnumerable
?
-
-
Access Modifiers
-
What are access modifiers in C#, and how do they control access to members?
-
-
Method Overloading & Overriding
-
What is the difference between method overloading and method overriding?
-
Can you provide real-time examples of both?
-
-
Authentication & Authorization Mechanism
-
How do you implement authentication and authorization mechanisms in a .NET application?
-
-
Singleton Pattern
-
How do you create a singleton pattern in C#?
-
-
Yield Keyword
-
What is the
yield
keyword in C#, and how does it work?
-
-
Sealed and ReadOnly
-
What is the purpose of the
sealed
andreadonly
keywords in C#, and how do they differ?
-
Comments
Post a Comment