ASP NET MVC Online Practice Test

ASP NET MVC Online Practice Test


Online Practice Test


  1. Which one is the best approach to assign a session value in Asp.Net MVC?

  2. System.Web.HttpContext.Current.Session["ID"] =2;
    Current.Session["ID"] =2;
    Session["ID"] =2;
    None
    All of above.

  3. Which one way to render Partial View using ASP.Net MVC Razor Engine?

  4. @Html.Partial("_PartialHeader")
    @Html.PartialView("_PartialHeader")
    @Html.PartialHtml("_PartialHeader")
    Both A) & B)
    None

  5. Is ViewBag slower than ViewData in MVC?

  6. Yes
    No
    Both A) & B)
    None
    All

  7. What is AuthConfig.cs in ASP.Net MVC ?

  8. AuthConfig.cs is used to configure route settings
    AuthConfig.cs is used to configure security settings including sites oAuth Login.
    Both A) & B)
    All
    None

  9. What is RouteConfig.cs in ASP.Net MVC?

  10. RouteConfig.cs is used to register MVC config statements, route config.
    RouteConfig.css is used to register global MVC bundles.
    Both A) & B)
    All
    None

  11. What is the benefits of Html.RenderPartial using ASP.Net MVC Razor Engine?

  12. @Html.RenderPartial Returns response, moreover requires to create action.
    @Html.RenderPartial Returns void, it is faster than @Html.Partial, moreover requires not to create
    Both A) & B)
    None
    All

  13. How to set Default Value to Hidden Input Box using ASP.Net MVC?

  14. @Html.HiddenFor(m => m.Name, "Anil")
    @Html.HiddenFor(m => m.Name, new { Value = "Anil"})
    @Html.Hidden(m => m.Name, new { Value = "Anil"})
    Both A) & B)
    All

ANIL SINGH

Hey! I'm Anil Singh. I author this blog. I'm Active Blogger, Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
My Blogs - http://www.code-sample.com and http://www.code-sample.xyz
My Books - Google Amazon and Flipkart Book Store!

You Might Also Like
Post a Comment
www.code-sample.com/. Powered by Blogger.
ASK Questions
SQL Server NodeJs TypeScript JavaScript Angular SQL Server My Book