0% found this document useful (0 votes)
11 views3 pages

Interview Questions

The document outlines a comprehensive set of questions covering core concepts in C#, ASP.NET MVC, Entity Framework, SQL, JavaScript, Web API, performance optimization, and best practices. It includes topics such as object-oriented programming principles, MVC architecture, database management, and security measures in web applications. Additionally, it presents scenario-based questions for practical application of the concepts discussed.

Uploaded by

ukstech98
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views3 pages

Interview Questions

The document outlines a comprehensive set of questions covering core concepts in C#, ASP.NET MVC, Entity Framework, SQL, JavaScript, Web API, performance optimization, and best practices. It includes topics such as object-oriented programming principles, MVC architecture, database management, and security measures in web applications. Additionally, it presents scenario-based questions for practical application of the concepts discussed.

Uploaded by

ukstech98
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

C# Core Concepts, ASP.

NET MVC, and


Entity Framework & Database Questions
C# Core Concepts
1. Explain encapsulation, inheritance, polymorphism, and abstraction.
2. What is the difference between abstract class and interface?
3. What is a sealed class, and when would you use it?
4. What is the difference between ref and out parameters in C#?
5. What are extension methods? Provide an example.
6. What are delegates and events? How are they used?
7. What is the difference between const, readonly, and static in C#?
8. What is the difference between value types and reference types?
9. How does garbage collection work in C#?
10. What is Dependency Injection and how does it improve application design?

ASP.NET MVC
1. Explain the MVC architecture.
2. What are Action Filters, and how are they used?
3. What is TempData, ViewData, and ViewBag? How do they differ?
4. What are Areas in ASP.NET MVC?
5. Explain the Routing Mechanism in ASP.NET MVC.
6. What is the difference between HtmlHelpers and TagHelpers?
7. What is a Partial View? How is it different from Layout?
8. Explain Model Binding in ASP.NET MVC.
9. What are Strongly Typed Views?
10. What is the difference between Asynchronous and Synchronous controllers?

Entity Framework & Database


1. What is Entity Framework, and how does it work?
2. What is the difference between Code First, Database First, and Model First
approaches?
3. What are migrations in Entity Framework?
4. What is the difference between lazy loading, eager loading, and explicit loading?
5. What are Navigational Properties in Entity Framework?
6. How can you improve performance in Entity Framework?
7. What are transactions in EF and how do you implement them?
8. What are stored procedures, and how can you call them in EF?
9. How do you handle concurrency issues in EF?
10. What is the difference between DbContext and ObjectContext?

SQL & Database Concepts


1. What is the difference between INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL
JOIN?
2. What is a Stored Procedure, and when should it be used?
3. What is an Index, and how does it improve performance?
4. What is the difference between Clustered and Non-clustered Indexes?
5. What are Primary Key, Foreign Key, and Unique Key?
6. What is Normalization, and why is it important?
7. How do you optimize a slow SQL query?
8. What are triggers in SQL?
9. How do you implement transactions in SQL?
10. Explain ACID properties in a database.

JavaScript, jQuery, and Frontend


1. What is the difference between var, let, and const in JavaScript?
2. What is closure in JavaScript?
3. How does event delegation work?
4. What is the difference between == and === in JavaScript?
5. Explain AJAX and how it works in ASP.NET MVC.
6. What are Promises and async/await in JavaScript?
7. How do you handle errors in JavaScript?
8. What is CORS, and how do you handle it?
9. What are the differences between localStorage, sessionStorage, and cookies?
10. How does jQuery handle DOM manipulation?

Web API & Security


1. What is RESTful API, and how does it work?
2. What is the difference between GET, POST, PUT, PATCH, DELETE methods?
3. What is CORS (Cross-Origin Resource Sharing) issues, and how do you fix them?
4. What is Token-Based Authentication (JWT)?
5. How do you implement OAuth 2.0 in ASP.NET Web API?
6. What are Middlewares in ASP.NET Core?
7. How do you handle exceptions in Web API?
8. How do you improve performance in Web API?
9. What is the difference between IActionResult and IHttpActionResult?
10. What is HMAC Authentication?

Performance & Best Practices


1. How do you optimize C# code for performance?
2. What are best practices for ASP.NET MVC development?
3. How do you implement caching in ASP.NET MVC?
4. How do you handle exceptions globally in ASP.NET MVC?
5. What are design patterns you have used (Singleton, Factory, Repository, etc.)?
6. How do you implement Unit Testing in ASP.NET MVC?
7. What are SOLID principles, and why are they important?
8. How do you handle high traffic applications efficiently?
9. How do you use Asynchronous Programming to improve performance?
10. How do you manage logging in an ASP.NET MVC application?

Bonus: Scenario-Based Questions


1. You need to optimize an ASP.NET MVC application that is running slow. What
steps will you take?
2. You have a long-running database query that is causing timeouts. How do you
troubleshoot it?
3. How would you secure sensitive data (like passwords) in an ASP.NET
application?
4. You need to create a RESTful API for a library management system. What
endpoints will you define?
5. How would you migrate an ASP.NET MVC project to ASP.NET Core?

You might also like