Set - 8

Question 31 :

An .ASHX file contains the following
* Code-behind that are used in the code
* Server Controls that can be called from a code-behind file
* HTTP handlers-software modules that handle raw HTTP requests received by ASP.NET
* Contains normal ASP.NET code and can be used as an include file

Answer :

HTTP handlers-software modules that handle raw HTTP requests received by ASP.NET


Question 32 :

One of the possible way of writing an ASP.NET handler that works like an ISAPI filter- that is, that sees requests and responses and modifies them also, is by,
* writing a module that extends FormsAuthenticatonModule and using it
* writing a component class that extends HttpModuleCollection and using it
* writing an HTTP module-a Class that implements IhttpModule and registering it in Web.Config
* All of the above

Answer :

writing an HTTP module-a Class that implements IhttpModule and registering it in Web.Config


Question 33 :

The ASP.NET directive that lets you cache different versions of a page based on varying input parameters, HTTP headers and browser type is
* @OutputCache
* @CacheOutput
* @PageCache
* @CacheAll

Answer :

@ OutputCache


Question 34 :

If we develop an application that must accommodate multiple security levels through secure login and ASP.NET web application is spanned across three web-servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users?
* <SessionState mode="InProc"stateConnectionString=" tcpip=127.0.0.1:42424" sqlConnectionString=" data source=127.0.0.1;user id=sa;password="cookieless="false" timeout="30" />
* <SessionState mode="OutProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="30" />
* <SessionState mode="stateserver" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="30" />

Answer :

SessionState mode="stateserver" stateConnectionString="tcpip=127.0.0.1:42424? sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="30?


Question 35 :

What is the output for the below mentioned compilation command>csc /addmodule:A.Exe B.Cs
* A.exe
* B.exe
* A.dll
* B.dll

Answer :

B.exe