View Count: 0
Duration: 39 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 9 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 35 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 10 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 13 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 15 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Learning should be free. I found tutorials of Sandeep sir most effective and changed my way of thinking and learning a lot. It is very disappointing for me to see the subscription cost. Everybody can't pay that much amount specially students like me.

Posted By Pranab Kumar De on 26-Mar-2017
Sorry!For this module there is no Assignments.
Question No: 1 of 27
which of the following is valid Html output produced by
@Html.ActionLink("Home","Index","Demo",new{Id=1,name="sandeepsoni"},new{target="_blank"}) 
Options:
  1. Home
  2. Demo
  3. Home
  4. Demo
View Answer/Explanation:
a
Explanation:
First Parameter is Link display text Second parameter is action name third parameter is controller name because Id is part of default route it not used in query string name is extra route property hence included as query string

Question No: 2 of 27
How to call an action Method on the click of a link? 
Options:
  1. @Html.ActionLink("LinkName", "ActionMethod", "Controller")
  2. @Html.ActionLink("LinkName", "Controller", "ActionMethod")
  3. @Html.ActionLink("LinkName", "ActionMethod")
  4. @Html.ActionLink("LinkName")
View Answer/Explanation:
a
Explanation:
When we need to call an Action Method on the click of a link then the syntax should be as below: @Html.ActionLink("LinkName", "ActionMethod", "Controller")

Question No: 3 of 27
In  MVC, the Html helper used to create a 'form' tag is ? 
Options:
  1. @Html.Form()
  2. @Html.BeginFormTag()
  3. @Html.StartForm()
  4. @Html.BeginForm()
View Answer/Explanation:
d
Explanation:
@Html.BeginForm() is used to create a form tag in the Razor view engine to associate the form level methods in the page.

Question No: 4 of 27
Which of the following is true about Html.BeginForm() 
Options:
  1. It returns string with HTML form tag and the same is rendered to the browser
  2. It directly renders form tag to the browser
  3. Default HTTP method rendered is post
  4. Default HTTP method rendered is get
View Answer/Explanation:
b c
Explanation:
Return type of HTML.BeginForm is MVCForm and not string. It directly writes the tag to browser

Question No: 5 of 27
Which of the following is invalid? 
Options:
  1. @{ Html.BeginForm(); } @{ Html.EndForm(); }
  2. @Html.BeginForm() @Html.EndForm()
  3. @{ Html.BeginForm(); @Html.EndForm(); }
  4. @using (Html.BeginForm()) { }
View Answer/Explanation:
b
Explanation:
Html.BeginForm() and Html.EndForm() should be enclosed within the block as they both do not return string.

Question No: 6 of 27
List depts = new List();
depts.Add(new Department() { DeptName = "D1", DeptId = 1 });
depts.Add(new Department() { DeptName = "D2", DeptId = 2 });
________ sl = new _________(depts, "DeptId", "DeptName", 2);
ViewData["DeptId"] = sl;
Fill in the blank so that sl can be used for binding to Html.DropDownList 
Options:
  1. IEnumerable and SelectList
  2. IEnumerable and SelectListItem
  3. SelectListItem and SelectList
  4. SelectList and SelectListItem
View Answer/Explanation:
a
Explanation:
SelectList is a collection of SelectListItem and thus below statement is valid IEnumerable sl = new SelectList()

Question No: 7 of 27
In  MVC, the Html helper used to render a DropDown list in Razor is ? 
Options:
  1. @Html.DropDown()
  2. @Html.DropDownItem()
  3. @Html.DropDownList()
  4. @Html.InputType()
View Answer/Explanation:
c
Explanation:
@Html.DropDownList() is used to create a dropdown list with items in which you are able to select one item.

Question No: 8 of 27
Which of the following Html Helper method return  tag which displays as DropDownList in browser
Html.ListBox returns   1