单项选择题

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. 
You plan to implement a test strategy for the application. 
You need to ensure that the test strategy meets the following requirements: 
Test data can be added to the test project without recompiling. 
Multiple variations of a test can be executed at run time.  
What should you do? ()

A. Use IntelliTrace.
B. Use data-driven tests.
C. Create a single test class.
D. Create a test method for each data variation.


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. 
You add a property named ServiceContext to a control. 
You need the value of ServiceContext to flow to the child controls exactly like the value of the DataContext property of the FrameworkElement class. 
What should you do? ()

A. Inherit the control class from the DependencyObject class.
B. Register a dependency property.   In the options settings of the property metadata, specify the Inherits option.
C. Declare a new property.   In the get and set methods of the new property, create an instance of the TraversalRequest class. 
D. Declare a new property.   In the get method of the new property call VisualTreeHelper.GetParent.   In the set method of the new property, call VisualTreeHelper.GetChild.

2.单项选择题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. 
You create a custom control named Wheel. 
You need to ensure that the Speed property of Wheel can be animated. 
What should you do?()

A. Inherit the DependencyObject class.
B. Declare the Speed property as a dependency property.
C. Declare an animation of the Speed property from within the code-behind file.
D. Implement the System.Windows.Media.Animation.IAnimatable interface with the Wheel class.

6.多项选择题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.  
The application uses the background worker process (BWP).  
When the user clicks a button,
the background worker executes a method named DoCalculations asynchronously. 
You need to implement a progress bar on the user interface (UI) that informs the user of the progress of DoCalculations. 
Which two actions should you perform?()

A. Modify the Value property of the progress bar in DoCalculations.
B. Modify the Value property of the progress bar in the ProgressChanged event handler of the background worker.
C. Modify the Value property of the progress bar in the RunWorkerCompleted event handler of the background worker.
D. Call the ReportProgress method of the background worker in DoCalculations.
E. Call the ReportProgress method of the background worker in the DoWork event handler of the background worker.

8.单项选择题

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application.  
The application uses the LINQ ParallelEnumerable.
AsParallel method to perform multiple queries on a database.  
You need to ensure that queries can execute on separate threads concurrently. 
What should you do? ()

A. Use the AsOrdered method.
B. Use the SelectMany method.
C. Use the AutoBuffered option in the WithMergeOptions method.
D. Use the WithExecutionMode method with the ParallelExecutionMode.ForceParallelism parameter.

最新试题

Which of the following examples of the pack URI syntax accesses a file named myImage.jpg in a folder named MyFolder in another assembly named myAssembly? ()

题型:单项选择题

You are developing a Windows Presentation Foundation (WPF) applicationThe application is for commercial use and requires a valid license key to be entered. You create a project type of Class Library code to validate license keysYou need to ensure that the user enters a valid license key during installation of the software.Which deployment should reference the class library?()

题型:单项选择题

You use Microsoft .NET Framework 4 to create an application. The application performs resource-intensive calculations that consist of multiple layers of nested looping.The application will be deployed to servers that contain varying hardware configurations. You need to ensure that the application utilizes CPU resources on the server in the most efficient manner. You want to achieve this goal by using the minimum amount of code. What should you do?()

题型:单项选择题

You are developing a Windows Presentation Foundation (WPF) application for a travel reservation systemYou need to ensure that users can select a range of travel dates.What should you do ?()

题型:单项选择题

You use Microsoft .NET Framework 4 to create a Windows Forms application.You write the following code segment. (Line numbers are included for reference only.)01sealed class FormSettings :You need to ensure that the first time each user opens the application, a text field displays the following message: "Please enter your setting."Which code segment should you insert at line 03?()

题型:单项选择题

Where can you check the value of a dependency property? ()

题型:单项选择题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application has a window named MainWindow that has a StackPanel control named sp as the root element. You want to create a Button control that contains a TextBlock control with the "Save" Text property. You need to create the control dynamically and add the control to sp. Which code segment should you write in the constructor of the MainWindow class?()

题型:单项选择题

You are developing a Windows Presentation Foundation (WPF) application. All of the application styles are in the file name Themes.dllYou have the followiing markup segment.BlueBackground is defined in a XAML file named BlueTheme.xaml. The XAML markup is compiled into the Themes.dll file.You need to ensure that the XAML file is referenced so that the application can apply the settings in the BlueBackground style.()

题型:单项选择题

You need to ensure that phone numbers are displayed in the following format : (###) ### - ###Which markup segment should you use ?()

题型:单项选择题

You are developing a Windows Presentation Foundation (WPF) application. You need to use XAML to create a custom control that contains two Button controls.From which base class should you inherit? ()

题型:单项选择题