Live Help (Start Chat)
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
 
 

Good job

Posted By Arber on 14-Sep-2017

Good job

Posted By Arber on 14-Sep-2017
Sorry!For this module there is no Assignments.
Question No: 1 of 13
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:
App_Start folder can contain class files which will be executed when the application starts. Typically, these would be config files like AuthConfig.cs, BundleConfig.cs, FilterConfig.cs, RouteConfig.cs etc. MVC 5 includes BundleConfig.cs, FilterConfig.cs and RouteConfig.cs by default.

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

Question No: 3 of 13
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 13
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: 5 of 13
Can we map multiple URL's to the same action? 
Options:
  1. True
  2. False
View Answer/Explanation:
a
Explanation:

Question No: 6 of 13
_______________is the Error when two controllers have same name in different namespace? 
Options:
  1. Internal server Error
  2. Namespace Ambuity
  3. HttpNotFound
  4. No Error
View Answer/Explanation:
b
Explanation:

Question No: 7 of 13
To Resolve the Namespace Ambiguity Error ________________ attribute or parameter is added in RouteConfig? 
Options:
  1. name
  2. Url
  3. namepaces
  4. defaults
View Answer/Explanation:
c
Explanation:

Question No: 8 of 13
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: 9 of 13
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 Employee 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:

Question No: 10 of 13
Which Routing attribute must be mentioned at Controller Level in MVC 5 
Options:
  1. RouteAction("Demo")
  2. RoutePrefix("Demo")
  3. RouteUrl("Demo")
  4. RouteController("Demo")
View Answer/Explanation:
b
Explanation:

  1