[A] officers [B] men [C] administrators [D] fathers
第1题:
Youaredevelopinganapplicationthatusesrole-basedsecurity.Theprinicipalpolicyoftheapplicationdomainisconfiguredduringstartupwiththefollowingcode:AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal);YouneedtorestrictaccesstooneofthemethodsinyourapplicationsothatonlymembersofthelocalAdministratorsgroupcancallthemethod.Whichattributeshouldyouplaceonthemethod?()
A.[PrincipalPermission(SecurityAction.Demand,Name=@"BUILTIN\Administrators")]
B.[PrincipalPermission(SecurityAction.Demand,Role=@"BUILTIN\Administrators")]
C.[PrincipalPermission(SecurityAction.Assert,Name=@"BUILTIN\Administrators")]
D.[PrincipalPermission(SecurityAction.Assert,Role=@"BUILTIN\Administrators")]
第2题:
第3题:
The Salvation Army is served by 1,800 officers(ordained ministers)and runs more than()worship centers.
A500
B1,000
C1,500
D2,000
第4题:
YouarecreatinganASP.NETWebsite.ThesiteisconfiguredtouseMembershipandRolemanagementproviders.Youneedtocheckwhetherthecurrentlylogged-onuserisamemberofarolenamedAdministrators.Whichcodesegmentshouldyouuse?()
A.boolisMember=Roles.GetUsersInRole("Administrators").Any()
B.boolisMember=Membership.ValidateUser(User.Identity.Name,"Administrators")
C.boolisMember=Roles.GetRolesForUser("Administrators").Any()
D.boolisMember=User.IsInRole("Administrators")
第5题: