单项选择题
YouareimplementinganASP.NETWebsite.Thesiteusesacomponentthatmustbedynamicallyconfiguredbeforeitcanbeusedwithinsitepages.YoucreateastaticmethodnamedSiteHelper.Configurethatconfiguresthecomponent.YouneedtoaddacodesegmenttotheGlobal.asaxfilethatinvokestheSiteHelper.Configuremethodthefirsttime,andonlythefirsttime,thatanypageinthesiteisrequested.Whichcodesegmentshouldyouuse?()
A.voidApplication_Start(objectsender,EventArgse){SiteHelper.Configure();}
B.voidApplication_Init(objectsender,EventArgse){SiteHelper.Configure();}
C.voidApplication_BeginRequest(objectsender,EventArgse){SiteHelper.Configure();}
D.ObjectlockObject=newObject();voidApplication_BeginRequest(objectsender,EventArgse){lock(lockObject()){SiteHelper.Configure();}}
- A.NETWebsite.Thesiteusesacomponentthatmustbedynamicallyconfiguredbeforeitcanbeusedwithinsitepages.YoucreateastaticmethodnamedSiteHelper.Configurethatconfiguresthecomponent.YouneedtoaddacodesegmenttotheGlobal.asaxfilethatinvokestheSiteHelper.Configuremethodthefirsttime,andonlythefirsttime,thatanypageinthesiteisrequested.Whichcodesegmentshouldyouuse?()
A.voidApplication_Start(objectsender,EventArgse){SiteHelper.Configure();}
B.voidApplication_Init(objectsender,EventArgse){SiteHelper.Configure();}
C.voidApplication_BeginRequest(objectsender,EventArgse){SiteHelper.Configure();}
D.ObjectlockObject=newObject();voidApplication_BeginRequest(objectsender,EventArgse){lock(lockObject()){SiteHelper.Configure();}}
相关考题
-
单项选择题
YouhadinstalledWindowsServer2008onacomputerandconfigureditasafileserver,namedFileSrv1.TheFileSrv1computercontainsfourharddisks,whichareconfiguredasbasicdisks.ForfaulttoleranceandperformanceyouwanttoconfigureRedundantArrayofIndependentDisks(RAID)0+1onFileSrv1.WhichutilityyouwillusetoconvertbasicdiskstodynamicdisksonFileSrv1()A.Diskpart.exeB.Chkdsk.exeC.Fsutil.exeD.Fdisk.exeE.Noneoftheabove
A.TheFileSrv1computercontainsfourharddisks,whichareconfiguredasbasicdisks.ForfaulttoleranceandperformanceyouwanttoconfigureRedundantArrayofIndependentDisks(RAID)0+1onFileSrv1.WhichutilityyouwillusetoconvertbasicdiskstodynamicdisksonFileSrv1()
A.Diskpart.exe
B.Chkdsk.exe
C.Fsutil.exe
D.Fdisk.exe
E.Noneoftheabove -
单项选择题
YouarecreatingaWindowsCommunicationFoundation(WCF)servicethatimplementsthefollowingservicecontract.PublicInterfaceIOrderProcessingSubApproveOrder(ByValidAsInteger)Forinteractiveandself-pacedpreparationofexam70-513,tryourpracticeexams.Practiceexamsalsoincludeselfassessmentandreportingfeatures!EndInterfaceYouneedtoensurethatonlyuserswiththeManagerrolecancalltheApproveOrdermethod.Whatshouldyoudo?()A.Inthemethodbody,checktheRights.PosessesPropertypropertytoseeifitcontainsmanager.B.AddaPrincipalPermissionattributetothemethodandsettheRolespropertytoManager.C.AddaSecurityPermissionattributetothemethodandsettheSecurityActiontoDemand.D.Inthemethodbody,createanewinstanceofWindowsClaimSet.
A.PublicInterfaceIOrderProcessingSubApproveOrder(ByValidAsInteger)Forinteractiveandself-pacedpreparationofexam70-513,tryourpracticeexams.Practiceexamsalsoincludeselfassessmentandreportingfeatures!EndInterfaceYouneedtoensurethatonlyuserswiththeManagerrolecancalltheApproveOrdermethod.Whatshouldyoudo?()A.Inthemethodbody,checktheRights.PosessesPropertypropertytoseeifitcontainsmanager.
B.AddaPrincipalPermissionattributetothemethodandsettheRolespropertytoManager.
C.AddaSecurityPermissionattributetothemethodandsettheSecurityActiontoDemand.
D.Inthemethodbody,createanewinstanceofWindowsClaimSet. -
单项选择题
YournetworkcontainstwoserversthatruntheServerCoreinstallationofWindowsServer2008R2.ThetwoserversarepartofaNetworkLoadBalancingcluster.TheclusterhostsaWebsite.AdministratorsuseclientcomputersthatrunWindows7.YouneedtorecommendastrategythatallowstheadministratorstoremotelymanagetheNetworkLoadBalancingcluster.Yourstrategymustsupportautomation.Whatshouldyourecommend?()A.Ontheservers,enableWindowsRemoteManagement(WinRM).B.Ontheservers,addtheadministratorstotheRemoteDesktopUsersgroup.C.OntheWindows7clientcomputers,enableWindowsRemoteManagement(WinRM).D.OntheWindows7clientcomputers,addtheadministratorstotheRemoteDesktopUsersgroup.
A.ThetwoserversarepartofaNetworkLoadBalancingcluster.TheclusterhostsaWebsite.AdministratorsuseclientcomputersthatrunWindows7.YouneedtorecommendastrategythatallowstheadministratorstoremotelymanagetheNetworkLoadBalancingcluster.Yourstrategymustsupportautomation.Whatshouldyourecommend?()
A.Ontheservers,enableWindowsRemoteManagement(WinRM).
B.Ontheservers,addtheadministratorstotheRemoteDesktopUsersgroup.
C.OntheWindows7clientcomputers,enableWindowsRemoteManagement(WinRM).
D.OntheWindows7clientcomputers,addtheadministratorstotheRemoteDesktopUsersgroup.
