Live Help (Start Chat)
Interview Questions and Answer
Options:
a. machine.config
b. web.config in root folder of web application
c. web.config in views
d. app.config
Reveal Answer
Options:
a. System.Configuration.AppSettings["k1"];
b. System.ConfigurationManager.AppSettings["k1"];
c. System.ConfigurationManager.AppSettings["k1"];
d. System.Configuration.WebSettings["k1"];
e. None of the above
Reveal Answer
Options:
a. By using Location path tag
b. We have to mention different controller path in appSettings.
c. We can have different web.config.
d. None of the above.
Reveal Answer
Options:
a. To overwrite configuration settings from parent directory web.config
b. To specify configuration settings for a given URL/Path
c. To block overriding of configuration settings in sub directory web.config
d. To specify location of Views on MVC application
Reveal Answer
Options:
a. Specify configuration settings for all .cshtml files
b. Specify configuration settings for all Controllers and Models
c. Setup default import namespaces for the view pages
d. Block request for all direct access to files in the views folder.
Reveal Answer
Options:
a. When the application receives the first request and is loaded to create an AppDomain
b. For every Request received by an application
c. When the web server is started
d. For every client when the application receives the first request from that client.
Reveal Answer
Options:
a. When the application receives the first request and is loaded to create an AppDomain
b. For every Request received by an application
c. When the web server is started
d. For every client when the application receives the first request from that client.
Reveal Answer
Options:
a. When the application recieves the first request
b. For every Request received by an application
c. When the web server is started
d. For every client when the application receives the first request from that client.
Reveal Answer
Options:
a. &ltConfiguration&gt &ltsystem.web&gt &ltconnectionStrings&gt &ltadd name="MySqlCS" connectionString="Data Source=localhost;Integrated Security=True;Initial Catalog=Northwind;"/&gt &lt/connectionStrings&gt &lt/system.web&gt &lt/configuration&gt
b. &ltConfiguration&gt &ltconnectionStrings&gt&ltadd name="MySqlCS" connectionString="Data Source=localhost;Integrated Security=True;Initial Catalog=Northwind;" /&gt &lt/connectionStrings&gt &lt/configuration&gt
c. &ltConfiguration&gt &ltsystem.web&gt &ltconnectionString&gt &ltadd name="MySqlCS" connectionString="Data Source=localhost;Integrated Security=True;Initial Catalog=Northwind;"/&gt &lt/connectionString&gt &lt/system.web&gt &lt/system.configuration&gt
d. &ltConfiguration&gt &ltconnectionString&gt &ltadd name="MySqlCS" connectionString="Data Source=localhost;Integrated Security=True;Initial Catalog=Northwind;" /&gt &lt/connectionStrings&gt &lt/configuration&gt
Reveal Answer
Options:
a. &ltcompilation debug="false" /&gt
b. &ltcompilation mode="production" /&gt
c. &ltcompilation production="true" /&gt
d. &ltcompilation debugging="false" /&gt
Reveal Answer
Options:
a. It can catch all exceptions including Http File Not found (404)
b. It will not able to catch an exception raised outside of controllers.
c. It can be used to log details of the exception thrown.
d. It returns an error view (error.cshtml)
Reveal Answer
Bestdotnet google plus