You are not logged in.

#1 2012-06-07 06:25:33

Muhammad
User RankUser RankUser RankUser RankUser RankUser Rank
بِسمِ اللَّهِ الرَّحمٰنِ الرَّحيمِ
From: Sahiwal Division
Registered: 2012-03-22
Posts: 22,197
Website

MVC Interview Questions And Answers

Applications Programs :: Model View Controller (MVC) Job Interview Questions and Answers

MVC frequently Asked Questions in various Model View Controller (MVC) job Interviews by interviewer. Get preparation of MVC job interview

1 What is Model View Controller (MVC)?


Online Web Tutorials And Interview Questions With Answers Forum:
https://globalguideline.com/forum/

2012-06-07 06:25:33

Advertisement
Ads By Google

Re: MVC Interview Questions And Answers



\n
The following user say "Thank You" for this post:Guest

#2 2012-06-07 07:33:58

Muhammad
User RankUser RankUser RankUser RankUser RankUser Rank
بِسمِ اللَّهِ الرَّحمٰنِ الرَّحيمِ
From: Sahiwal Division
Registered: 2012-03-22
Posts: 22,197
Website

Re: MVC Interview Questions And Answers

2 What is best way to get a reference to the viewport from anywhere in the code?
3 How to run an app in a page with existing content? (no viewport i am guessing, but what else do i need to know?)
4 How to use model validation rules with a form?
5 Suppose that if i want to open a contacts view, i should call contactsController.view(id), or what have you, which would then open the view for me. correct?
6 Tell me in other mvc systems, the rule is fat models, skinny controllers. ie the business logic goes in the models and all controllers do is load/save models and load/kill views. is this the extjs way?
7 What are the 3 main components of an ASP.NET MVC application?
8 In which assembly is the MVC framework defined?
9 Is it possible to combine ASP.NET webforms and ASP.MVC and develop a single web application?
10 What does Model, View and Controller represent in an MVC application?
11 What is the greatest advantage of using asp.net mvc over asp.net webforms?
12 What are the advantages of ASP.NET MVC?
13 Is it possible to unit test an MVC application without running the controllers in an ASP.NET process?
14 Is it possible to share a view across multiple controllers?
15 What is the role of a controller in an MVC application?
16 Where are the routing rules defined in an asp.net MVC application?
17 Name a few different return types of a controller action method?
18 What is the significance of NonActionAttribute?
19 What is the significance of ASP.NET routing?
20 What are the 3 segments of the default route, that is present in an ASP.NET MVC application?
21 ASP.NET MVC application, makes use of settings at 2 places for routing to work correctly. What are these 2 places?
22 What is the adavantage of using ASP.NET routing?
23 What are the 3 things that are needed to specify a route?
24 Is the following route definition a valid route definition?
25 What is the use of the following default route?
26 What is the difference between adding routes, to a webforms application and to an mvc application?
27 How do you handle variable number of segments in a route definition?
28 What are the 2 ways of adding constraints to a route?
29 Give 2 examples for scenarios when routing is not applied?
30 What is the use of action filters in an MVC application?
31 If I have multiple filters impleted, what is the order in which these filters get executed?
32 What are the different types of filters, in an asp.net mvc application?
33 Give an example for Authorization filters in an asp.net mvc application?
34 Which filter executes first in an asp.net mvc application?
35 What are the levels at which filters can be applied in an asp.net mvc application?
36 Is it possible to create a custom filter?
37 What filters are executed in the end?
38 Is it possible to cancel filter execution?
39 What type of filter does OutputCacheAttribute class represents?
40 What are the 2 popular asp.net mvc view engines?
41 What symbol would you use to denote, the start of a code block in razor views?
42 What symbol would you use to denote, the start of a code block in aspx views?
43 In razor syntax, what is the escape sequence character for @ symbol?
44 When using razor views, do you have to take any special steps to proctect your asp.net mvc application from cross site scripting (XSS) attacks?
45 When using aspx view engine, to have a consistent look and feel, across all pages of the application, we can make use of asp.net master pages. What is asp.net master pages equivalent, when using razor views?
46 How do you specify comments using razor syntax?
47 What are the file extensions for razor views?
48 What are sections?


Online Web Tutorials And Interview Questions With Answers Forum:
https://globalguideline.com/forum/

The following user say "Thank You" for this post:Guest

#3 2012-10-29 08:00:13

jenny2765
User RankUser RankUser RankUser RankUser RankUser Rank
Member
Registered: 2012-10-29
Posts: 7

Re: MVC Interview Questions And Answers

Too many job seekers stumble through interviews as if the questions are coming out of left field. But many interview questions are to be expected. Study this list and plan your answers ahead of time so you’ll be ready to deliver them with confidence.

1.What is MVP?

Ans. MVP(Model View Presentor) is a user interface design pattern engineered to facilitate automated unit testing and improve the separation of concerns in presentation logic.
It is derived from MVC(Model View Controller) design pattern. The MVP in the pattern has following description.
The model is an interface defining the data to be displayed or otherwise acted upon in the user interface.
The view is an interface that displays data (the model) and routes user commands (events) to the presenter to act upon that data.
The presenter acts upon the model and the view. It retrieves data from repositories (the model), and formats it for display in the view.

2. What is difference between MVC and MVP?
Ans. The key difference between MVC and MVP is that MVP truly separates the UI from the domain/service layer of the application. In MVP the presenter assumes the functionality of the middle-man(played by the Controller in MVC). MVP is specially geared towards a page event model such as ASP.NET.
For more differences see my article: MVC Vs MVP


103 interview questions and answers ( free pdf download)

The following user say "Thank You" for this post:Guest

Board footer