[go: up one dir, main page]

0% found this document useful (0 votes)
5 views4 pages

NET Web Developer Interview Questions Pdd62r

The document provides a list of basic to intermediate interview questions and answers for .NET Web Developers, covering topics such as ASP.NET, MVC, CLR, and Entity Framework. Key differences between Web Forms and MVC, as well as concepts like routing, model binding, and dependency injection are discussed. It serves as a resource for candidates preparing for technical interviews in the field of .NET development.

Uploaded by

khadijawajid77
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)
5 views4 pages

NET Web Developer Interview Questions Pdd62r

The document provides a list of basic to intermediate interview questions and answers for .NET Web Developers, covering topics such as ASP.NET, MVC, CLR, and Entity Framework. Key differences between Web Forms and MVC, as well as concepts like routing, model binding, and dependency injection are discussed. It serves as a resource for candidates preparing for technical interviews in the field of .NET development.

Uploaded by

khadijawajid77
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/ 4

.

NET Web Developer

Basic to Intermediate Interview Questions


1. What is ASP.NET?
Answer: ASP.NET is a web application framework developed by
Microsoft to build dynamic web sites, applications, and services.

2. What is the difference between ASP.NET Web Forms and


ASP.NET MVC?
Answer: Web Forms use a drag-and-drop event-driven model, while
MVC follows the Model-View-Controller pattern offering better
separation of concerns and control over HTML.

3. What is the CLR in .NET?


Answer: CLR (Common Language Runtime) is the execution engine of
.NET, handling memory management, security, and exception handling.

4. What is a managed code?


Answer: Code that runs under the control of the CLR is called managed
code.

5. What is the difference between ViewBag, ViewData, and


TempData in ASP.NET MVC?
Answer:

• ViewBag: Dynamic, used to pass data from controller to view.


• ViewData: Dictionary type, similar purpose.
• TempData: Stores data until the next request (useful for
redirection).

APTECH JOB FAIR 2025


.NET Web Developer

6. What are Action Methods in MVC?


Answer: Methods in a controller that handle incoming browser
requests.

7. What is Razor in ASP.NET MVC?


Answer: Razor is a markup syntax for embedding server-side code in
web pages using @.

8. How is routing handled in ASP.NET MVC?


Answer: Routing maps URLs to controller actions using a RouteConfig
file or attribute-based routing.

9. What is the difference between GET and POST?


Answer: GET retrieves data and appends it to the URL. POST submits
data in the body, more secure for sensitive data.

10. What is Model Binding in MVC?


Answer: Automatically maps HTTP request data to parameters or
model objects in an action method.

11. What is the role of the Web.config file?


Answer: Stores configuration data like connection strings, session
settings, error handling, etc.

12. What is Entity Framework?


Answer: EF is an ORM (Object-Relational Mapper) for .NET to interact
with databases using objects instead of SQL.

APTECH JOB FAIR 2025


.NET Web Developer

13. What are Partial Views?


Answer: Reusable view components used in multiple places within an
application, similar to user controls.

14. What is the difference between Server.Transfer and


Response.Redirect?
Answer:

• Server.Transfer: Transfers execution without changing the URL.


• Response.Redirect: Redirects to a new URL and reloads the page.

15. What is dependency injection in ASP.NET Core?


Answer: A design pattern where services are injected into classes
rather than created inside them, improving testability and modularity.

16. What is Middleware in ASP.NET Core?


Answer: Components that handle HTTP requests and responses in the
pipeline, e.g., authentication, routing.

17. What are filters in MVC?


Answer: Attributes like [Authorize] or [ValidateAntiForgeryToken] that add
logic before or after action methods run.

18. How do you handle exceptions in ASP.NET?


Answer: Using try-catch blocks, custom error pages via Web.config, or
middleware in ASP.NET Core.

APTECH JOB FAIR 2025


.NET Web Developer

19. What is the difference between synchronous and asynchronous


programming in .NET?
Answer: Synchronous waits for a task to finish; asynchronous uses
async/await to perform tasks without blocking the main thread.

20. What is the purpose of the Global.asax file?


Answer: It contains application-level event handlers like Application_Start,
Session_Start, etc.

APTECH JOB FAIR 2025

You might also like