CMS专题

单选题You use Microsoft Visual Studio 2010 and Microsoft . NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You create a WPF window in the application. You add the following code segment to the application. public class Vie

题目
单选题
You use Microsoft Visual Studio 2010 and Microsoft . NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You create a WPF window in the application. You add the following code segment to the application. public class ViewModel { public CollectionView Data { get; set; } } public class BusinessObject { public string Name { get; set; } } The DataContext property of the window is set to an instance of the ViewModel class. The Data property of the ViewModel instance is initialized with a collection of BusinessObject objects. You add a TextBox control to the Window. You need to bind the Text property of the TextBox control to the Name property of the current item of the CollectionView of the DataContext object. You also need to ensure that when a binding error occurs, the Text property of the TextBox control is set to N/A . Which binding expression should you use?()
A

 { Binding Path=Data/Name, FallbackValue='N/A' }

B

 { Binding Path=Data.Name, FallbackValue='N/A' }

C

 { Binding Path=Data/Name, TargetNullValue='N/A' } 

D

 { Binding Path=Data.Name, TargetNullValue='N/A' }

如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You create a Microsoft ASP.NET AJAX application by using the Microsoft .NET Frameworkversion 3.5.  You attach Microsoft Visual Studio 2008 debugger to the Microsoft Internet Explorer instance to debug the JavaScript code in the AJAX application.  You need to ensure that the application displays the details of the client-side object on the debugger console.  What should you do?()

  • A、Use the Sys.Debug.fail method. 
  • B、Use the Sys.Debug.trace method. 
  • C、Use the Sys.Debug.assert method. 
  • D、Use the Sys.Debug.traceDump method.

正确答案:D

第2题:

You create a Microsoft ASP.NET AJAX application by using the Microsoft .NET Framework version 3.5.  You attach Microsoft Visual Studio 2008 debugger to the Microsoft Internet Explorer instance to debug the JavaScript code in the AJAX application.  You need to ensure that the application displays the details of the client-side object on the debugger console.  What should you do?()

  • A、Use the Sys.Debug.fail method.
  • B、Use the Sys.Debug.trace method.
  • C、Use the Sys.Debug.assert method.
  • D、Use the Sys.Debug.traceDump method.

正确答案:D

第3题:

下列( )不是运行ASP.NET程序的必要条件。

A.IIS

B.浏览器

C..NET Framework

D.Microsoft Visual Studio.NET环境


正确答案:D

第4题:

You plan to deploy a new Microsoft Visual Studio Tools for Office(VSTO) add-in for Excel.You need to ensure that the VSTO add-in is deployed appropriately.What should you do?()

  • A、Use the ClickOnce technology.Include the .Net FrameWork 3.5 as a requirement
  • B、Use the Windows Installer deployment.Include a deployment manifest that has been signed by using Authenticode certificate.
  • C、Use the ClickOnce technology.Include the Microsoft Office 2007 Primary Interop assemblies as a prerequisite.
  • D、Use the Windows Installer deployment.Inclued a deployment manifest which specifies that only administrative permission are requied.

正确答案:C

第5题:

You create a control named ContosoUI for a Web application. You need to add the control to the toolbox of Microsoft Visual Studio .NET. Which two actions should you perform?()

  • A、Create the ContosoUI control as a Web Control Library.
  • B、Create the ContosoUI control as a Web user control.
  • C、Within the Visual Studio .NET toolbox, browse to and select ContosoUI.ascx.
  • D、Within the Visual Studio .NET toolbox, browse to and select ContosoUI.dll.

正确答案:A,D

第6题:

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.

正确答案:D

第7题:

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.

正确答案:B

第8题:

You are designing a test plan for an existing Windows Azure .NET 4 application.  Method calls return incorrect results for certain input parameters.   You need to recommend an approach for debugging the method calls.  What should you recommend?()  

  • A、 Attach the remote debugger to the application.
  • B、 Use the Microsoft Visual Studio 2010 Test Manager tool.
  • C、 Use IntelliTrace to collect only eventsfrom the application.
  • D、 Use IntelliTrace to collect events and call information from the application.

正确答案:D

第9题:

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Framework (WPF) application. You have a company logo that must appear on multiple forms in the application. The logo design changes frequently. You need to ensure that when the logo image is changed, you only need to update a single location. What should you do?()

  • A、 Define the image as a page resource. 
  • B、 Define the image as an application resource.
  • C、 Save the image on a network drive. 
  • D、 Include the image as an embedded resource.

正确答案:B

第10题:

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application includes a function that is triggered by filling out a form and by clicking a button. Currently, the application is tested manually. You need to create an automated and iterative process to test the application. What should you do?()

  • A、 Use IntelliTrace.
  • B、 Use UISpy.exe to extract the user interface (UI) information. Then, use MSTest.exe.
  • C、 Use classes in the System.Windows.Automation and System.Windows.Automation.Text namespaces.
  • D、 Use the Action Recording methodology to record the user interface (UI) actions. Then, use MSTest.exe.

正确答案:C

更多相关问题