ASP.NET Interview Questions
Ramil Ahmad Malik
Senior Software Engineer at Contour Software| Asp.Net | .Net Core | Angular | VueJS | React JS | React Native | SQL Server | MYSQL | Microservices | AWS | Azure
SOLID Principles
1. Single Responsibility Principle (SRP)
A class should have one and only one reason to change, meaning that a class should have only one job.
2. Open/Closed Principle (OCP)
Objects or entities should be open for extension but closed for modification.
3. Liskov Substitution Principle (LSP)
Every subclass or derived class should be substitutable for their base or parent class.
4. Interface Segregation Principle (ISP)
A client should never be forced to implement an interface it doesn't use or depend on methods it does not need.
5. Dependency Inversion Principle (DIP)
High-level modules should not depend on low-level modules; both should depend on abstractions.
Design Patterns
Structural Patterns
Creational Patterns
Behavioral Patterns
Object-Oriented Programming (OOP) Concepts
View Data vs ViewBag vs TempData
Generic Programming
var: Determined at compile time; type cannot change.
dynamic: Determined at runtime; type can change.
ref: Requires an assigned value before passing.
out: Value assignment is not required before passing.
领英推荐
Entity Framework (EF)
An ORM for .NET that allows working with data as domain-specific objects rather than tables and columns. It simplifies data-oriented application development by reducing boilerplate code.
Constructors in .NET
Key Notes:
Promises vs Observables
Common Language Runtime (CLR)
The CLR is the runtime environment for .NET applications, managing memory, code verification, security, and garbage collection. The JIT compiler converts Intermediate Language (IL) into machine code at runtime.
Ahead-of-time (AOT)
Ahead-of-time (AOT) compilation refers to an umbrella of technologies which generate code at application build time, instead of run-time. AOT is not new to .Net. Today we ship ReadyToRun for client and server scenarios, and Mono AOT for mobile and WASM. Native AOT brings full native pre-compilation to .Net desktop client and server scenarios
Dependency Injection
Task vs Thread
Dynamic Language Runtime (DLR)
The DLR adds dynamic language support to the CLR, allowing dynamic typing and execution in .NET applications.
Mutable vs Immutable
IQueryable Vs IEnumerable
Boxing and Unboxing
int i = 100;
object obj = i;
int i = (int)obj;
Miscellaneous Concepts
Back-End Developer at MaanzAI
1 个月Very informative
Full-Stack .Net Developer C# |ASP.NET | MVC | .NET Core | Microservices |Azure
1 个月Very helpful