View Count: 0
Duration: 30 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 15 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

bohat e vadia hai g

Posted By Raman on 15-Apr-2017
Sorry!For this module there is no Sample Code.
Sorry!For this module there is no Assignments.
Question No: 1 of 15
RouteConfig.cs file is under which App folder ? 
Options:
  1. App_Data
  2. App_Start
  3. App_Code
  4. Filters
View Answer/Explanation:
b
Explanation:

Question No: 2 of 15
Default routing is defined under____________file 
Options:
  1. RouteConfig.cs
  2. BundleConfig.cs
  3. WebApiConfig.cs
  4. Gobal.asax
View Answer/Explanation:
a
Explanation:

Question No: 3 of 15
Routes are initialized in the__________ method of Gobal.asax 
Options:
  1. Register()
  2. RegisterGlobalFilters()
  3. Application_Start()
  4. RegisterRoutes()
View Answer/Explanation:
c
Explanation:

Question No: 4 of 15
What are the 3 things that are needed to specify a route? 
Options:
  1. UrlPattern, default values, Name of the Route
  2. UrlPattern, default values, Constraints
  3. NameSpaces, name of the route, Constraint
  4. Name of the route, NameSpace, UrlPattern
View Answer/Explanation:
a
Explanation:

Question No: 5 of 15
What is right way to define the routes.MapRoute() method in MVC? 
Options:
  1. routes.MapRoute("Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" });
  2. routes.MapRoute("Default", "{controller}{action}{id}", new { controller = "Home", action = "Index", id = "" });
  3. routes.MapRoute("Default", "controller/action/id", new { controller = "Home", action = "Index", id = "" });
  4. routes.MapRoute("Default", "controller#action#id", new { controller = "Home", action = "Index", id = "" });
View Answer/Explanation:
a
Explanation:
When an MVC application first starts, the Application_Start() method is called. This method, in turn, calls the RegisterRoutes() method. The RegisterRoutes() method creates the route table. The default route table contains a single route (named Default). The Default route maps the first segment of a URL to a controller name, the second segment of a URL to a controller action, and the third segment to a parameter named id.

Question No: 6 of 15
Can we map multiple URL's to the same action? 
Options:
  1. True
  2. False
View Answer/Explanation:
a
Explanation:
Yes ,you just need to make two entries with different key names and specify the same controller and action.

Question No: 7 of 15
_______________is the Error when two controllers have same name in different namespace? 
Options:
  1. Internal serverError
  2. Namespace Ambiguity
  3. HttpNotFound
  4. No Error
View Answer/Explanation:
b
Explanation:

Question No: 8 of 15
To Resolve the Namespace Ambuity Error ________________ attribute or paramater is Added in RouteConfig? 
Options:
  1. name
  2. Url
  3. namepaces
  4. defaults
View Answer/Explanation:
c
Explanation:

Question No: 9 of 15
Which of the following is true about routes.IgnoreRoute("{resource}.axd/{*pathInfo}"? 
Options:
  1. It provides Url routing
  2. It provides a REST based URL that is very easy to remember
  3. Prevent requests for the Web resource files such as WebResource.axd or ScriptResource.axd from being passed to a controller.
View Answer/Explanation:
a b c
Explanation:

Question No: 10 of 15
We have two controllers in our project, Student and Employee, and we have some issue with the Employee controller. Now how will you stop the accesing the Employe controller from user? 
Options:
  1. register.Ignore.Employee
  2. routes.Ignore("Employee")
  3. routes.IgnoreRoute("Employee")
  4. route.Ignoreroute("Employee")
View Answer/Explanation:
c
Explanation:

  1