SOLVED| GRADED A+
What is the name of default Viewstart Page in ASP.Net MVC ?
Select one:
a. _ViewStart.cshtml
b. _Login.cshtml
c. _Layout.cshtml
d. None a
Which Namespace is used for Razor View Engine ?
Select one:
a. System.Web.Razor
b. System.Web.Mvc.WebFormViewEngine
c. Both A & B
d. None a
Which one of the following is the fastest way to concat strings in ASP.NET?
Select one:
a. Append method of the StringBuilder object
b. Plus sign operator to concatenate the strings
c. Concat method of the String object
d. Substring method of the String object a
Which is the best approach to assign a session in MVC?
Select one:
a. Current.Session["LoginID"] =7;
, b. Session["LoginID"] =7;
c. None
d. System.Web.HttpContext.Current.Session["LoginID"] =7; a
Which is the way to render Partial View using ASP.Net MVC Razor Engine?
Select one:
a. @Html.Partial("_PartialHeader")
b. @Html.PartialView("_PartialHeader")
c. @Html.PartialHtml("_PartialHeader")
d. B and C
e. None a
var context = new SchoolContext()
context.Add(new Student(){ Name = "Steve" });
context.SaveChanges();
The above code will execute which of the following command to the database?
Select one:
a. Update
b. Delete
c. Insert
d. None of the above c
Which layout control would be the best choice for a user interface that requires evenly spaced
controls laid out?
Select one:
a. Canvas