What is the difference between IEnumerable and IQueryable in LINQ?

Heisenbug logo
TheHeisenBug

Search

Search across questions, learning content, and hands-on projects

Ace Your Next Tech Interview

5,986+ interview questions across 87 technologies — with expert answers, advanced search, AI-powered assistance, personal highlights, structured learning paths, and hands-on practice projects.

5,986+Questions & Answers
87Technologies
AdvancedSearch
Built-inAsk AI
PersonalHighlights
StructuredLearning Paths
Hands-onPractice Projects

Lifetime Access

One-time payment. No subscriptions. Unlock everything, forever.

$19.90USD

or R$49.90 BRL

FeatureFreePremium
Question titlesAllAll
Answers per topicTop 5All
Learning chaptersFirst 5All
Practice projectsFirst 3All
Highlights
Ask AI
Read tracking
Search

.NET Interview Questions

  1. [JUNIOR] What is .NET and what are its main components?
  2. [MID] What is dependency injection in .NET and what are the service lifetimes (Transient, Scoped, Singleton)?
  3. [JUNIOR] What is the Common Language Runtime (CLR) and what does it do?
  4. [JUNIOR] What is the difference between value types and reference types in C#?
  5. [MID] What is middleware in ASP.NET Core and how does the request pipeline work?
  6. [MID] How does async/await work in C# and what problems does it solve?
  7. [MID] What is Entity Framework Core and how does it differ from traditional ADO.NET?
  8. [SENIOR] What is the CQRS pattern and when should you use it in .NET applications?
  9. [JUNIOR] What is garbage collection in .NET and why is it important?
  10. [JUNIOR] What is the difference between an abstract class and an interface in C#?
  11. [JUNIOR] What is the difference between .NET Framework, .NET Core, and .NET 5+?
  12. [JUNIOR] What are namespaces in C# and how are they used?
  13. [MID] What is LINQ and what are its benefits in .NET development?
  14. [MID] What are delegates and events in C# and how are they used?
  15. [MID] What is the difference between IEnumerable and IQueryable in LINQ?
  16. [MID] How does routing work in ASP.NET Core MVC?
  17. [SENIOR] How do you optimize performance in high-traffic ASP.NET Core applications?
  18. [SENIOR] How would you implement distributed caching with Redis in a .NET application?
  19. [SENIOR] How do you design and implement a microservices architecture in .NET?
  20. [JUNIOR] What is boxing and unboxing in .NET?
  21. [JUNIOR] What is the difference between an EXE and a DLL in .NET?
  22. [JUNIOR] What is the Common Type System (CTS) in .NET?
  23. [JUNIOR] What is the Common Language Specification (CLS)?
  24. [JUNIOR] What is Just-In-Time (JIT) compilation in .NET?
  25. [JUNIOR] What is an assembly in .NET and what are its different types?
  26. [MID] What is the repository pattern and how do you implement it in .NET?
  27. [MID] How do you implement JWT authentication in ASP.NET Core?
  28. [MID] What is Kestrel and why is it used in .NET Core?
  29. [MID] What are extension methods in C# and how are they used?
  30. [MID] What is the difference between eager loading, lazy loading, and explicit loading in Entity Framework Core?
  31. [MID] What is reflection in .NET and what are its practical applications?
  32. [SENIOR] What is SignalR and how do you implement real-time communication in ASP.NET Core?
  33. [SENIOR] How do you implement API versioning and deprecation in ASP.NET Core?
  34. [SENIOR] How do you implement health checks and monitoring in a production .NET Core application?
  35. [SENIOR] How do you handle concurrency conflicts in a multi-user Entity Framework Core application?
  36. [SENIOR] How do you implement rate limiting in an ASP.NET Core Web API?
  37. [SENIOR] What are Minimal APIs in ASP.NET Core and when would you choose them over controllers?
  38. [JUNIOR] What is the purpose of the using statement in C#?
  39. [JUNIOR] What is the difference between string and StringBuilder in C#?
  40. [JUNIOR] What is the difference between int and Int32 in C#?
  41. [JUNIOR] What is serialization and deserialization in .NET?
  42. [MID] What are the SOLID principles and how do they apply to .NET development?
  43. [MID] What is the difference between Task and Task<TResult> in C#?
  44. [MID] What are records in C# and when would you use them for DTOs?
  45. [MID] How do you implement model validation in ASP.NET Core using data annotations and FluentValidation?
  46. [MID] What are filters in ASP.NET Core and what types are available?
  47. [MID] How do you configure CORS in an ASP.NET Core application?
  48. [SENIOR] What is the difference between output caching, response caching, and HybridCache in .NET?
  49. [SENIOR] How do you implement the Circuit Breaker and Retry patterns using Polly in .NET?
  50. [SENIOR] How do you integrate gRPC in a .NET application for inter-service communication?
  51. [SENIOR] How do you implement background services and hosted services in .NET Core?
  52. [SENIOR] How do you containerize a .NET application with Docker and deploy it to Kubernetes?
  53. [EXPERT] How does the .NET garbage collector work internally (generations, LOH, pinning) and how do you optimize it for high-performance scenarios?
  54. [JUNIOR] What are the different types of classes in C# (static, sealed, partial, abstract)?
  55. [JUNIOR] What is the purpose of the System.IO namespace in .NET?
  56. [JUNIOR] What is exception handling in C# and how does try-catch-finally work?
  57. [MID] What is the role of the Program.cs and Startup.cs files in a .NET Core project?
  58. [MID] What is Swagger/OpenAPI and how do you set it up in a .NET Core Web API?
  59. [MID] How do you implement logging in .NET Core using built-in and third-party providers?
  60. [MID] What is the difference between IActionResult and ActionResult<T> in ASP.NET Core?
  61. [MID] How do you handle database migrations in Entity Framework Core?
  62. [SENIOR] What is GraphQL and how do you implement it in a .NET application?
  63. [SENIOR] How do you implement multitenancy in an ASP.NET Core application?
  64. [SENIOR] What is Vertical Slice Architecture and how does it compare to Clean Architecture in .NET?
  65. [SENIOR] How do you implement structured logging and distributed tracing in a .NET microservice architecture?
  66. [EXPERT] How do you use Span<T> and Memory<T> to achieve zero-allocation high-performance code in .NET?
  67. [EXPERT] How do you implement Event Sourcing in .NET and what are the trade-offs?
  68. [EXPERT] How do you implement the Saga pattern for handling distributed transactions across .NET microservices?
  69. [JUNIOR] What is the Global Assembly Cache (GAC)?
  70. [JUNIOR] What is the difference between managed and unmanaged code?
  71. [MID] What is the difference between cookie authentication and JWT in a SPA + API architecture?
  72. [MID] What are Tag Helpers in ASP.NET Core?
  73. [MID] What is the difference between Razor Pages and MVC in ASP.NET Core?
  74. [SENIOR] How do you implement OAuth 2.0 and OpenID Connect in .NET for securing microservices?
  75. [SENIOR] How do you implement WebSockets for real-time bidirectional communication in ASP.NET Core?
  76. [SENIOR] How do you integrate message brokers like RabbitMQ or Azure Service Bus in a .NET application?
  77. [EXPERT] What is the Roslyn compiler platform and how can you use Source Generators to enhance developer productivity?
  78. [EXPERT] How do you profile memory usage and diagnose memory leaks in a .NET application?
  79. [EXPERT] How do you implement zero-downtime deployments for .NET applications in production?
  80. [JUNIOR] What is the Common Intermediate Language (CIL) and what role does it play?
  81. [MID] What is the difference between the [FromBody], [FromQuery], [FromRoute], and [FromHeader] attributes?
  82. [SENIOR] What is Blazor and what are the differences between server-side and client-side (WebAssembly) Blazor?
  83. [EXPERT] What is the Actor model and how does Orleans implement it for distributed systems in .NET?
  84. [EXPERT] How does the Task Parallel Library (TPL) work internally and what are the pitfalls of parallel programming in .NET?
  85. [EXPERT] What happens when you inject a Scoped service into a Singleton in .NET and how do you detect and prevent captive dependency issues?
  86. [EXPERT] How do you implement custom CLR hosting or extend the .NET runtime for specialized scenarios?
  87. [EXPERT] What is the CancellationToken propagation pattern and how do you ensure proper cooperative cancellation throughout an async call chain?