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

Anil Singh is an author, tech blogger, and software programmer. Book writing, tech blogging is something do extra and Anil love doing it. For more detail, kindly refer to this link..

My Tech Blog - https://www.code-sample.com/
My Books - Book 1 and Book 2

ASP NET MVC Online Practice Test ASP NET MVC Online Practice Test Reviewed by Anil Singh on 10:30 PM Rating: (5)
www.code-sample.com/. Powered by Blogger.
^