ASP.NET MVC Interview Questions and Answers (162) - Page 4

Which of the following statement is true with respect to MVC?

NOTE: This is objective type question, Please click question title for correct answer.
What is the output for the expression, string[] colors = {"green", "brown", "red", "blue"}; colors.Max(c => c.length);

NOTE: This is objective type question, Please click question title for correct answer.
How can we use css files in mvc application?

Normally, I would put most of general layout related css into content/style.css

If you use theme, then put it into content/theme/{themename}/style.css
If you create custom html control, i would try to create another css file for control and put it under content/control.css
In most of time, jquery is used in the asp.net MVC, so it make sense to put it's css in Script/jquery/{pluginName}/xxx.css
There could be more, but that's what's in my head now.

Splitting the css into multiple files is a good thing from a maintenace point of view. It makes it easier to work with and apply changes. However, multiple files can have an impact on application performance as the browser has to download each file individually. You can haev the best of both worlds though.

The technique that is recommended is to bundle all your html files for deployment so that it is served as 1 single file. The nice thing about this approach is that it lets you develop with multiple files, giving you ease of use. But get on the fly css file combination so that your browser only has to download one file.
What is used for Code-Reusability in Asp.Net Mvc ?

NOTE: This is objective type question, Please click question title for correct answer.
Business Layer in Asp.Net Mvc is also known as ?

NOTE: This is objective type question, Please click question title for correct answer.
Display Layer in Asp.Net Mvc is also known as ?

NOTE: This is objective type question, Please click question title for correct answer.
Input Control in Asp.Net Mvc is also known as ?

NOTE: This is objective type question, Please click question title for correct answer.
Most commonly used view engine in Asp.Net Mvc is ?

NOTE: This is objective type question, Please click question title for correct answer.
In Asp.Net Mvc, the property that provides access to the route data structure for current request is ?

NOTE: This is objective type question, Please click question title for correct answer.
Who introduced first MVC to the world ?

NOTE: This is objective type question, Please click question title for correct answer.
In Asp.Net MVC 'ActionResults', which Result is used to return a string literally ?

NOTE: This is objective type question, Please click question title for correct answer.
In Asp.Net MVC 'ActionResults', which Result is used to return the contents of a file ?

NOTE: This is objective type question, Please click question title for correct answer.
In Asp.Net MVC 'ActionResults', which Result is used to return a script to execute ?

NOTE: This is objective type question, Please click question title for correct answer.
In Asp.Net MVC 'ActionResults', which Result is used to return the data in JSON format ?

NOTE: This is objective type question, Please click question title for correct answer.
In Asp.Net MVC 'ActionResults', which Result is used to Redirect the client to a new Url ?

NOTE: This is objective type question, Please click question title for correct answer.
In Asp.Net MVC 'ActionResults', which Result is used to return an HTTP 403 status ?

NOTE: This is objective type question, Please click question title for correct answer.
In Asp.Net MVC 'ActionResults', which Result is used to Redirect client to another action or another controller's action ?

NOTE: This is objective type question, Please click question title for correct answer.
In Asp.Net MVC 'ActionResults', the Result responsible for the View Engine's response ?

NOTE: This is objective type question, Please click question title for correct answer.
In Asp.Net MVC 'ActionResults', the Result used to get no response ?

NOTE: This is objective type question, Please click question title for correct answer.
In Asp.Net MVC, the Action Filter used to cache the output of a controller is ?

NOTE: This is objective type question, Please click question title for correct answer.
Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Interview Questions and Answers Categories