.NET Interview Questions:



.NET Interview Questions:

  1. 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?

  2. Polymorphism

    • What are the different types of polymorphism?

    • Can you explain real-time use cases of polymorphism?

  3. Constructor

    • What is a constructor, and what are its different types?

  4. Static Keyword

    • What is the use of the static keyword in C#/.NET?

  5. HTTP Methods

    • What is the difference between HTTP GET and PUT methods?

  6. SQL Operations

    • What is the difference between TRUNCATE and DELETE in SQL?

    • What is a ROLLBACK in SQL, and when is it used?

  7. Filters

    • What are filters in ASP.NET MVC/Core, and how do they work?

  8. Routing

    • How does routing work in ASP.NET MVC/Core?

  9. Authentication and Authorization

    • What is the difference between authentication and authorization?

    • How are authentication and authorization implemented in .NET?

  10. SQL Keywords

  • What is the use of the DENSE_RANK keyword in SQL?

  1. ReadOnly and Sealed

  • What is the difference between readonly and sealed in C#?

  1. Triggers

  • What are SQL triggers, and when should they be used?

  1. .NET Framework vs .NET Core

  • What are the key differences between .NET Framework and .NET Core?

  1. ViewData, TempData, ViewBag

  • What is the difference between ViewData, TempData, and ViewBag in ASP.NET MVC?

  1. Boxing and Unboxing

  • What is boxing and unboxing in C#, and why is it important?

  1. Indexing

  • What is indexing in SQL or C#, and how does it improve performance?


.NET Interview Questions 

  1. Extension Methods

    • What are extension methods in C#, and how are they used?

  2. IQueryable vs IEnumerable

    • What is the difference between IQueryable and IEnumerable?

  3. Access Modifiers

    • What are access modifiers in C#, and how do they control access to members?

  4. Method Overloading & Overriding

    • What is the difference between method overloading and method overriding?

    • Can you provide real-time examples of both?

  5. Authentication & Authorization Mechanism

    • How do you implement authentication and authorization mechanisms in a .NET application?

  6. Singleton Pattern

    • How do you create a singleton pattern in C#?

  7. Yield Keyword

    • What is the yield keyword in C#, and how does it work?

  8. Sealed and ReadOnly

    • What is the purpose of the sealed and readonly keywords in C#, and how do they differ?



Comments

Popular posts from this blog

API development using .NET Core - ProductManagmentCRUD

Singleton Design Pattern Realtime Example of banking

Consume API in MVC Application