InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Is it possible to implement Ajax in MVC if yes then how? |
|
Answer» Is it POSSIBLE to IMPLEMENT Ajax in MVC if YES then how? |
|
| 2. |
One major difference between MVC and traditional ASP.NET web application |
|
Answer» One major difference between MVC and TRADITIONAL ASP.NET web application |
|
| 3. |
What do you mean by DispatcherServlet? |
|
Answer» What do you MEAN by DispatcherServlet? |
|
| 4. |
How do we maintain a session in MVC? |
|
Answer» How do we maintain a session in MVC? |
|
| 5. |
Advantage and disadvantage of MVC architecture |
|
Answer» Advantage and disadvantage of MVC architecture |
|
| 6. |
Why to use NonActionAttribute in MVC |
|
Answer» When we TALK about controller class all the methods in it are TREATED as action methods by DEFAULT. But we can change this public method to PREVENT this by using NONACTIONATTRIBUTE. |
|
| 7. |
Define two ways to add constraints to a route in MVC? |
|
Answer» DEFINE two ways to add constraints to a route in MVC? Below are the two methods to add constraints to a route in MVC (1)By using regular EXPRESSIONS (2)By the USE of OBJECT that implements IRouteConstraint Interface. |
|
| 8. |
List common return types of a controller action method? |
|
Answer» List COMMON RETURN types of a controller action method? |
|
| 9. |
Write down some of common difference between Partial View and View in MVC? |
|
Answer» WRITE down some of common DIFFERENCE between PARTIAL VIEW and View in MVC? Below are the some of the common difference between Partial View and View. |
|
| 10. |
what is bundling and minification in mvc |
|
Answer» what is bundling and minification in mvc |
|
| 11. |
Define two techniques like Minification and Bundling in MVC? |
|
Answer» DEFINE two techniques like MINIFICATION and Bundling in MVC? Minification and Bundling are two techniques included in MVC WHOSE primary function is to progress the request load time. This will advances the load time by dipping the QUANTITY of requests sent to the server as well as reducing the requested assets size(CSS and Javascript). |
|
| 12. |
What do you mean by TempData in MVC? |
|
Answer» What do you MEAN by TempData in MVC? |
|
| 13. |
Different return types of a controller action method |
|
Answer» DIFFERENT return types of a controller action method ACTIONRESULT is a return type of controller method in asp.net mvc. There are many derived ActionResult types in MVC that we USE to return the result of a controller method to the VIEW. ActionResult is a return type of controller method in MVC. ActionResult is abstract class that has many subtypes. Below are the different return types of a controller action method:- (1)ViewResult (2)PartialViewResult (3)ContentResult (4)RedirectResult (5)RedirectToRouteResult (6)JsonResult (7)EmptyResult (8)FileResult (9)JavaScriptResult |
|
| 14. |
Which one is faster MVC or ASP.NET |
|
Answer» Which one is faster MVC or ASP.NET |
|
| 15. |
What is ViewData in MVC |
|
Answer» What is ViewData in MVC |
|
| 16. |
Request Flow in ASP.NET MVC Framework |
|
Answer» Request Flow in ASP.NET MVC Framework |
|
| 17. |
Can we create web application with both webforms and mvc? |
|
Answer» Can we create web application with both webforms and mvc? |
|
| 18. |
Difference between TempData, viewData and ViewBag in MVC |
|
Answer» Difference between TempData, viewData and VIEWBAG in MVC |
|
| 19. |
Advantages and Disadvantages of MVC model |
|
Answer» Advantages and Disadvantages of MVC model |
|
| 20. |
Could not load type System.Web.Mvc.ViewPage in asp.net MVC2 |
|
Answer» To RESOLVE this issue we need to ADD below PAGE tag in web.config file in system.web section |
|
| 21. |
Different MVC version with there features |
|
Answer» Below are the five MVC version with there features |
|
| 22. |
Basic diagram of MVC |
|
Answer» Below diagram helps you to under stand what are the DIFFERENT three PARTS of MVC and what the PURPOSE of these three parts and what is there purpose in MVC:- |
|
| 23. |
Can you write down some syntax for Razor in MVC3 |
|
Answer» Below i have GIVEN some syntax of razor as well as some comparison with the old technlogies used before Razor |
|
| 24. |
How to create Razor enable application in MVC3 |
|
Answer» Before doing with RAZOR MVC3 you must install it. And one more THING is that MVC3 have some enhancement int it but some basic INPUTS are taken from MVC2. |
|