[ Pobierz całość w formacie PDF ]

D: If you choose Optimized For Size, the setup project will be the smallest possible size, but might require
more time to install.
Reference:
70-306/70-316 Training kit, Deploying your Application, Bootstrapper, Compression, Page 475-476
Visual Studio, Build, Configuration Settings, Deployment Project Properties Dialog Box
Visual Studio, Walkthrough: Reducing the Size of an Installer by Excluding Merge Modules
Incorrect Answers
B: Third party compression utilities are not used to compress Visual Studio .NET projects.
C: A maximum cab size of 650MB would enable spanning the application to several CDs. However, we
want the application to fit on a single CD.
Leading the way in IT testing and certification tools, www.testking.com
- 91 -
070 - 316
E: The Bootstrapper property specifies whether a bootstrapper (bootstrapping application) will be included
in an installer. A bootstrapper includes the files needed to install Microsoft Windows Installer 1.5 on the
target computer if it is not already installed. Windows installer 1.5 is already included in Windows XP
but is required for earlier operating systems.
Setting the Bootstrapper property to None would reduce the project size. However, not as much as A) or
D).
QUESTION NO: 108
You use Visual Studio .NET to create an employee database application for TestKing Ltd. Your
application contains the following code segment. (Line numbers are included for reference only.
01 foreach(Employee oEmployee in oCompany.Employees) {
02 bSuccess = RecordsUpdate(oEmployee);
03 }
When you debug your application, you discover that RecordsUpdate sometimes returns a value of
False. As quickly as possible, you need to debug your application and find all instances where
RecordsUpdate returns this value.
What should you do?
A. Set a breakpoint on line 1. Step through the code after the breakpoint is reached.
B. Set a breakpoint on line 2. Step through the code after the breakpoint is reached.
C. Set a breakpoint on line 1. Set its Condition property to !bSuccess and select the has changed
option.
D. Set a breakpoint on line 2. Set its Condition property to bSuccess and select the is true option.
E. Set a breakpoint on line 2. Set its Condition property to !bSuccess and select the is true option.
F. Add a watch expression for bSuccess. Select the option Break when value is true.
Answer: E
Explanation: We must put the breakpoint on the line that contains that sets the variable we are interested in.
Furthermore, we must set a condition. We should set the condition to !bSuccess, which stands for not
BSuccess, since we want to find all instances where the Bsuccess is false.
Reference: 70-306/70-316 Training kit, Setting Breakpoints, Pages 211-212
Incorrect Answers
A, C: We must set the breakpoint at line 2.
B: We are only interested in when bSuccess has a value of False.
D: This breakpoint would stop the execution whenever BSuccess is set to true.
F: The Watch window is just used to track a variable or expression. You cannot break out of this tracing.
Leading the way in IT testing and certification tools, www.testking.com
- 92 -
070 - 316
QUESTION NO: 109
You use Visual Studio .NET to create a Windows-based data management application named
TestKingApp. You implement the following code segment:
TraceSwitch oSwitch = new
TraceSwitch( MySwitch ,  My TraceSwitch );
StreamWriter oWriter = new StreamWriter(
File.Open(@ C:\TestKingApp.txt , FileMode.Append));
TextWriterTraceListener oListener =
new TextWriterTraceListener(oWriter);
Trace.Listeners.Add(oListener);
try {
CustomerUpdate();
}
catch (Exception oEx) {
Trace.WriteLineIf(oSwitch.TraceError,
 Error:  + oEx.Message);
}
finally {
Trace.Listeners.Clear();
OWriter.Close();
}
You compile a debug version of the application and deploy it to a user s computer. The user reports
errors, which are generated within the CustomerUpdate procedure.
You decide to enable logging of the error message generated by CustomerUpdate. You want to use the
minimum amount of administrative effort.
What should you do?
A. Start the application with the following command line:
/TRACE MySwitch 1
B. Start the application with the following command line:
/d:TRACE=True
C. Start the application with the following command line:
/XML
D. Create an environment variable on the user s computer. Name the variable MySwitch and assign it a
value of 1.
E. Edit your application s .config file to set the value of MySwitch to 1.
Answer: E
Explanation: Trace switches can be turned on and off after your application has been compiled and
distributed. Trace switches are configured by manipulating the application .config file.
Reference: 70-306/70-316 Training kit, Configuring Trace Switches, Page 226
Leading the way in IT testing and certification tools, www.testking.com
- 93 -
070 - 316
QUESTION NO: 110
You use Visual Studio .NET to develop a Windows-based application called TestKingEngine. You
implement security classes of the .NET Framework.
As users interact with your application, role-based validation will frequently be performed. You must
ensure that only validated Windows NT or Windows 2000 domain users are permitted to access your
application.
You add the appropriate using statements for the System.Security.Principal namespace and the
System.Threading namespace.
Which additional code segment should you use?
A. AppDomain.CurrentDomain.
SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal);
WindowsPrincipal principal =
(WindowsPrincipal) Thread.CurrentPrincipal;
B. AppDomain.CurrentDomain.
SetThreadPrincipal(PrincipalPolicy.WindowsPrincipal);
WindowsPrincipal principal =
(WindowsPrincipal)Thread.CurrentPrincipal;
C. WindowsIdentity identity =
WindowsIdentity.GetCurrent();
WindowsPrincipal principal =
new WindowsPrincipal(identity);
D. WindowsIdentity identity = [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • projektlr.keep.pl