Monday, July 27, 2015

ASPNETONLINETEST

1)IN asp.net if one requests windows authentication the current request attaches an object.

a)Windows Principal.
b)Serialization.
c)Windows DataSet.
d)None of Above.

2)which of the following is not a member of Response object.

a)Clear.
b)EndObject.
c)Binary Write.
d)Write.

3)which dll translates xml to sql in IIS .

a)SQLXML.DLL.
b)LINQXML.DLL.
c)SQLISAPI.DLL.
d)SQLIIS.DLL.

4)SqlDataSource and ObjectDataSource Controls are implementing interfaces.

a)IListSource.
b)IDataSource.
c)IDBCommand.
d)Both A and B.

5)what is the difference between httpHandlers and HTTP Modules.

a)Authorization and Authentication is done by HttpModules..
b)HttpHandler is Generally responsible to Create a Response Stream to incoming Request.
c)Both a and b.
d)HttpModules are present in Request Processing PipeLine.

6)What will happen if we wanted to Cache the Page based on the QueryString Values.

a)Add attribute VaryByCustom in the <%@ OutputCache Duration="1000" %>.
b)Add attribute VaryByParam in the <%@ OutputCache Duration="1000" %>.
c)c)Add attribute VaryByControl in the <%@ OutputCache Duration="1000" %>.
d)Add attribute VaryByHeader in the <%@ OutputCache Duration="1000" %>.

7)Property Common in Every Validation Control.

a)Validation Expression
b)Initial Value.
c)Value to Compare.
d)Control To Validate .

8)Which are Server Based State Management options.

a)Both B and C
b)Session State.
c)Profile Properties.
d)View State.

9)What is the Significance of the Code Cache.Insert("key", myXMLFileData, new System.Web.Caching.CacheDependency("Maps.xml")); .

a)myXmlFileData will remain in Cache in Default 1 Minute and Expires
b)Must Include TimeSpan attribute.
c)This Construct will show Error.
d)Data myXmlFileData is changed in object Cache when changes occure in Maps.xml File.

10)Default Session Data Stored in .

a)State Server.
b)In Process.
c)Sesssion Object.
d)Cookies.

11)what class does the ASP.NET web form class inherit from by default .

a)System.Web.UI.Form.
b)System.Web.GUI.Form.
c)System.Web.Form.
d)System.Web.UI.Page.

12)Where do we include the user lists for Form authentication?.

a)Credentials.
b)In Process.
b)Authentication.
c)Authorization.

13)Which of the following is false regarding windows Authentication .

a)Every executing thread has an associated principal..
b)Application pool must be in classic mode and not in integrated mode for impersonation.
c)Impersonation cannot be used in code level also in integrated mode.
d)To use Authorization and Authentication at user level we must impersonation.

14)Which one of the following is used to obtain performance information about a Web Application?.

a)System Performance Counters.
b)Both A and C.
c)Application Performance Counters .
d)Data Readers.

15)which is wrong attribute for Forms Authentication .

a)LoginUrl.
b)name.
c)Time.
d)Path.

16)What is the difference betweeen Application Exception and System Exception .

a)Application Exception does not have Help Link Property.
b)System Exception caused by .NET base Class Libraries
c)Application Exception are not needed for creating User defined Exception.
d)Both b and c.

17)what causes the fluidity of the Web Applications when Page has been requested..

a)State Management Enabled Web Page.
b)User Control Enabled web Page.
c)Cache Enabled Web Page.
d)AJAX Enabled Web Page.

18))what is the correct format for enabling Sql Cache Databases Dependency. .

a)aspnet_regsql.exe -l localhost -U sa -P password -d Database -ed.
b)aspnet_regsql.exe -S localhost -U sa -P password -d Database -et.
c)aspnet_regsql.exe -S localhost -U sa -P password -d Database -ed.
d)aspnet_regsql.exe -S localhost -U sa -P password -d Database -dt.

19))which one does not represents section in the Trace information .

a)Cache State.
b)Session State.
c)Control Tree.
d)Headers Collection.

20)Where is Authentication and Authorization is done in Integrated Request Processing PipleLine in IIS .

a)Post Processing Modules.
b)Preprocessing Modules.
c)Handler Mapper.
d)Request Section.

21))what is the name of the method in the Route specification in Global.asax.cs. routes.MapRoutes("Stateone","{x}/{y}/{z}) .

a)State One.
b)X.
c)Y.
d)Z.

22)In HomeController.cs File
public ActionResult zoo()
{
ViewData["Title"]="Zoo Page Rendered";
return View();
}
what happens if only About.aspx the only File Present Home Views Directory When Page is Requested. .

a)About.aspx is rendered.
b)InValid operation Exception occurs.
c)Zoo is Dynamically Created and Rendered.
d)Default View is Rendered.

23)which of the Property does apply to overloading webmethods in webservices .

a)Enable Session.
b)Messsage Name.
c)Description.
d)Cache Duration.

24)With WCF the Service Oriented Architecture which one is not Applicable. .

a)Interfaces are exposed to consumers.
b)Services are Autonomous.
c)Service Compatibility that is based upon policy.
d)Services are based on contracts, Schemas and Policy.

25)What are the Ways we want if wanted to have Sql Cache Dependency in Sql Server .

a)Enable the Database and Sql Tables for Sql Cache Dependency using aspnet_regsql.exe
b)Programmatically Use SqlCacheDependency and SqlDependency to Start the Listener and Add SqlCacheDependency object in Response.AddCacheDepency.
c)Use SqlDependency Class to Start Listener.
d)Both a and b.