题目内容

You are developing an application that runs by using the credentials of the end user. Only users who are members of the Administrator group get permission to run the application. You write the following security code to protect sensitive data within the application.bool isAdmin=false; WindowsBuiltInRole role=WindowsBuiltInRole.Administrator; ...... if(!isAdmin) throw new Exception("User not permitted"); You need to add a code segment to this security code to ensure that the application throws an exception if a user is not a member of the Administrator group. Which code segment should you use?()

A
B
C
D

查看答案
更多问题

You are developing an ASP.NET Web page. The page contains the following markup. The pages code-behind file includes the following code segment. You need to get a reference to the Image named img. Which code segment should you add at line 06?()

A. Image img = (Image)Page.FindControl("img");
B. Image img = (Image)e.Row.FindControl("img");
C. Image img = (Image)gvModels.FindControl("img");
D. Image img = (Image)Page.Form.FindControl("img");

You issue the command show process memory ∣ include BGP and notice that BGP is consuming alarge percentage of the router’s memory. Which of the following steps would result in lowering theamount of memory being consumed by BGP?(Choose all that apply.)()

A. Filter unneeded BGP routes
B. Run BGP on a different platform that already has more memory
C. Upgrade the router memory
D. Increase the BGP update timer
E. Compress the BGP table
F. Use a default route instead of maintaining a full BGP table

You develop a service application named PollingService that periodically calls long-running procedures.These procedures are called from the DoWork method.You use the following service application code: When you attempt to start the service, you receive the following error message: Could not start the PollingService service on the local computer.Error 1053: The service did not respond to the start or control request in a timely fashion. You need to modify the service application code so that the service starts properly.What should you do?()

A. Move the loop code into the constructor of the service class from the OnStart method.
B. Drag a timer component onto the design surface of the service. Move the calls to the long-running procedure from the OnStart method into the Tick event procedure of the timer, set the Enabled property of the timer to True, and call the Start method of the timer in the OnStart method.
C. Add a class-level System.Timers.Timer variable to the service class code. Move the call to the DoWork method into the Elapsed event procedure of the timer, set the Enabled property of the timer to True, and call the Start method of the timer in the OnStart method.
D. Move the loop code from the OnStart method into the DoWork method.

You work in a Organization which is named Wiikigo Corp. The Organization uses SQL Server 2008. You are the administrator of the Organization database. Now you are in charge of a SQL Server 2008 instance. Look at the following query: SELECT s.*, i.* FROM SensitiveTbl AS s INNER JOIN InsensitiveTbl AS iON i. OrganizationName = s.OrganizationName You use the above query to join two tables on a column named OrganizationName. The following error is returned when you execute the query. "Msg 468, Level 16, State 9, Line 17 Cannot resolve the collation conflict between 'SQL_Latin1_General_CP1_CS_AS' and 'SQL_Latin1_General_CP1_CI_AS' in the equal to operation." The ON clause of the query has to be modified so that it can perform a case-sensitive joinsuccessfully. What should you do? ()

A. ON LOWER(i.OrganizationName) = LOWER(s.OrganizationName)
B. ON UPPER(i.OrganizationName) = UPPER(s.OrganizationName)
C. ON i.OrganizationName = s.OrganizationName COLLATE SQL_Latin1_General_CP1_CS_AS
D. ON i.OrganizationName = s.OrganizationName COLLATE SQL_Latin1_General_CP1_CI_AS

答案查题题库