View Count: 0
Duration: 21 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 19 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 9 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

ok

Posted By Pankaj Kumar on 29-Aug-2017
Question No: 1 of 12
Which folders are by default created in a Visual Studio MVC project? 
Options:
  1. Views
  2. App_Code
  3. Styles
  4. Models
View Answer/Explanation:
a d
Explanation:
By default in MVC Project we have Views and Models folder readymade given as they are part of MVC Architecture.

Question No: 2 of 12
All the Views shared between all the Controllers must be placed in _____folder 
Options:
  1. Views/Shared
  2. Controller
  3. /Shared
  4. /Views
View Answer/Explanation:
a
Explanation:
If a View is placed in Views/Shared then it will be shared between all the controllers.

Question No: 3 of 12
What is Route Config.cs in MVC? 
Options:
  1. RouteConfig.cs is routing configuration for ASP.Net MVC.
  2. RouteConfig.cs is used to register global MVC bundles.
  3. Registering styles and scripts
  4. Registering namespaces
View Answer/Explanation:
a
Explanation:

Question No: 4 of 12
What is the extension of MVC view when using C#? 
Options:
  1. cshtml
  2. vbhtml
  3. .aspx
  4. .asax
View Answer/Explanation:
a
Explanation:

Question No: 5 of 12
Where are routes registered in MVC Application? 
Options:
  1. Controller, Constructor
  2. Web.Config
  3. Global.asax, Application_Start
  4. Global.asax, Session_Start
View Answer/Explanation:
c
Explanation:

Question No: 6 of 12
What is the importance of packages.config file in an MVC Project? 
Options:
  1. It lists all the source code files of the project (.vb & .cs) of the project.
  2. Use to track packages installed in the project along with their respective versions.
  3. It is used while packaging the application to deploy in the production machine.
  4. It has all the configuration settings of an application.
View Answer/Explanation:
b
Explanation:
Packages.config is an XML document referencing to all the packages installed using NUGET tool in Visual Studio.

Question No: 7 of 12
What is the Use of Global.asax in MVC? 
Options:
  1. It has all the code shared between all the Views in an application
  2. It has all the Global code shared in a application
  3. It has CSS Styles
  4. It used for setting the Layout/Master page of the application
View Answer/Explanation:
b
Explanation:
As the name implies it has all that code which is shared across complete application.

Question No: 8 of 12
Can browser directly submit the request for Files placed in the Views/Shared folder of an ASP.NET Web Application? 
Options:
  1. Yes
  2. No
View Answer/Explanation:
b
Explanation:
Form is always submitted and mapped to an action method of a controller.

Question No: 9 of 12
What is the true about the route url added to the Route Table? 
Options:
  1. Are used for mapping the Urls to Action Method of given Controller
  2. Are Identified with a Unique Name
  3. Are used for setting default value for Route Data
  4. Are supposed to be added to Route table for every request.
View Answer/Explanation:
a b c
Explanation:
Route Table have the data about the Urls and Urls mapped to a action method of as given controller and Urls are identified with a unique name

Question No: 10 of 12
Can we change the default controller from “HomeController” to another controller class? 
Options:
  1. Yes
  2. No
View Answer/Explanation:
a
Explanation:
We can change the default controller by mentioning its name in defaults parameter of routes.MapRoute

  1