Dotnet Developer Questions
Dotnet Developer Questions
Problem-Solving Questions:
1. Given a list of integers, write a C# method to find the maximum sum of a
subarray (contiguous elements) using the Kadane's algorithm. Explain the time
and space complexity of your solution.
2. Design a database schema for an e-commerce platform, considering factors such
as products, customers, orders, and payments. Discuss the relationships between
these entities.
3. You are tasked with implementing user authentication in an ASP.NET Core
application. Discuss the security considerations involved and outline the steps
you would take to secure user passwords.
4. Implement a caching mechanism in C# to store frequently accessed data. Discuss
different caching strategies and when each might be appropriate.
5. Create a multithreaded C# program that simulates a producer-consumer
scenario using the Producer-Consumer pattern. Discuss potential
synchronization issues and how you would address them.
6. Given a scenario where an application is experiencing performance issues,
describe the steps you would take to identify and troubleshoot the root cause.
7. Design a class hierarchy for a vehicle system, including various types of vehicles
such as cars, trucks, and motorcycles. Discuss the use of interfaces and abstract
classes in your design.
8. You are building a web application that requires real-time updates. Discuss
different approaches for implementing WebSocket communication and the pros
and cons of each approach.
9. Create a dotnet core sample project that demonstrates your ability to use
Dependency injection, logging, Middleware and accessing database using entity
framework.