[ Pobierz całość w formacie PDF ]

on the database. Your team wants more detailed information about these errors. Which of the following actions
should you perform? (Select the best choice.)
A. Recompile the application and include the /d:TRACE = True option on the command line.
B. Edit the application configuration file and set the trace level to 4.
C. Start the application from the command line and include the /d:trace=4 argument.
D. Use #CONST statements to set the trace levels and recompile the application.
Answer: B
You can change the settings of trace switches through an application configuration file. The configuration file
of an application is named application_name.exe.config. Setting a trace switch to 4, or verbose mode, provides
the greatest level of detail in trace messages. Recompiling the application and including the /d:TRACE = True
option on the command line will enable tracing, but will not affect the trace level. #CONST is used to specify
compiler settings. Recompiling an application is not necessary in order to change the value of a trace switch.
Including the /d:trace=4 argument on the command line will not change the trace level.
QUESTION .7 You have written an application named Space Utilization that uses an assembly named MathLib
to calculate vehicle space utilization for Consolidated Parcels. You install your application to the
C:\ProgramFiles\SpaceUtilization folder, and install the assembly to the C:\Program Files\MathLib folder.
When you try to run the application, it fails with a TypeLoadException. Which of the following actions will not
correct the problem? (Each choice represents a complete solution to the problem.) (Select 3 choices.)
A. Uninstall the assembly and reinstall it to the C:\Program Files\Space Utilization folder.
B. Add the MathLib assembly to the GAC.
C. Edit the shortcut for the Space Utilization application and change the startup path to
C:\ProgramFiles\MathLib.
D. Add the following entry to the startup section of the
C:\ProgramFiles\SpaceUtilization\SpaceUtilization.config file:
Microsoft-com:asm:v1>
E. Add C:\Program Files\MathLib to the system path.
F. Add the following entry to the runtime section of the
C:\ProgramFiles\SpaceUtilization\SpaceUtilization.exe.config file:
Actualtests.com - The Power of Knowing
070-316
Microsoft-com:asm:v1>
G. Uninstall the assembly and reinstall it to the C:\Windows\Microsoft.Net\Framework\MathLib folder.
Answer: C, D, E, G
To correct the TypeLoadException error that occurs in this scenario, you can either install the assembly in a
valid location or use the configuration file to point the application to the location of the assembly.
TypeLoadExceptionis thrown when a required assembly cannot be found. By default, the common language
runtime (CLR) will search for the assembly in the application folder. The CLR will also search the folders
specified in the private Pathattribute of the probing element of the assemblyBinding element in the runtime
section of the application s configuration file. Publishing the assembly in the global assembly cache (GAC) will
also enable the application to find the assembly. None of the other options will have any effect on the
application's ability to locate the assembly.
QUESTION .8 You are working as a maintenance programmer for Coders Inc. A stored procedure made by
your colleague is not returning the right values. The stored procedure is located in a Microsoft SQL Server
2000database Which window in Visual Studio .NET should you use to select the stored procedure to
debug?(Select the best choice.)
A. Server Explorer
B. Command
C. Task List
D. Output
Answer: A
You can debug Microsoft SQL Server stored procedures with version 6.5 and Service Pack 3 or later while in
Visual Studio .NET. First, use the Server Explorer window to establish a connection to your database. Next,
navigate through the database until you find the stored procedure that you want to debug in the stored procedure
node. Then, right-click the stored procedure and choose the Step Into Stored Procedure option.
QUESTION .9 Your application features several advanced operations that should only be performed by
Subject Lecturers of the School of International Banking. In your organization, all project manager user
accounts are members of the Subject Lecturers group in the Windows NT PROGRAMMING domain. In order
to show the advanced features of the frmOptions form, you write the following code:frmOptions oOptions =
new frmOptionsWindowsIdentity oIdentity = WindowsIdentity.GetCurrentWindowsPrincipal oPrincipal = New
WindowsPrincipal(oIdentity)
If oPrincipal.IsInRole("SubjectLecturers"){oOptions.ShowAdvancedFeatures();}When you execute this code,
the options form is displayed, but the advanced features are not shown. Which of the following actions should
you perform to display the options form with the advanced
features?(Select the best choice.)
A. Initialize the oIdentity object as WindowsIdentity.GetAnonymous.
B. Change the If statement to If oIdentity.IsSystem Then.
C. Change the value that is passed to the IsInRole method call to PROGRAMMING\SubjectLecturers.
D. Change the value that is passed to the IsInRole method call to PROGRAMMING.
Answer: C
To display the options form with the advanced features, you should change the value that is passed to the
parameter of the IsInRole method call to PROGRAMMING\SubjectLecturers. When specifying a Windows
group as a parameter to the Principal.IsInRole method, the domain or the computer name should be specified in
the parameter. Initializing the oIdentity object with the Get Anonymous method would cause the oIdentity
object to have only the limited permissions that are available to anonymous users. The Is System method of the
Actualtests.com - The Power of Knowing
070-316
Identity class returns True if the associated user account is flagged as a System account. The Is System method
does not indicate whether the account is a member of the PROGRAMMING\SubjectLecturers group.
QUESTION .10You use Visual Studio .NET to create a Windows-based application called
CertkillerTimeSheetApp. The main form of the application contains several check boxes that correspond to
application settings. One of the Checkbox controls is named overtime Checkbox. The caption for overtime
Checkbox is"Overtime". You must enable users to select or clear this check box by pressing ALT+A. Which
two actions should you take? (Each correct answer presents part of the solution. Choose two)
A. Set overtimeCheckBox.AutoCheck to True.
B. Set overtimeCheckBox.AutoCheck to False.
C. Set overtimeCheckBox.Tag to "&Overtime".
D. Set overtimeCheckBox.CheckState to Unchecked.
E. Set overtimeCheckBox.CheckState to Indeterminate.
F. Set overtimeCheckBox.Apperance to Button. [ Pobierz całość w formacie PDF ]
  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • ocenkijessi.opx.pl
  • Copyright (c) 2009 - A co... - Ren zamyślił się na chwilę - a co jeśli lubię rzodkiewki? | Powered by Wordpress. Fresh News Theme by WooThemes - Premium Wordpress Themes.