微软认证考试

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application that displays a high-resolution graphic image named Image1.jpg. You need to limit the width of the image to 200 pixels. You also need to preserve the aspect

题目

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application that displays a high-resolution graphic image named Image1.jpg. You need to limit the width of the image to 200 pixels. You also need to preserve the aspect ratio of the image. Which code fragment should you use?()

  • A、 <Image Width="200" Source="Image1.jpg"/>   <Image Width="200" Height="200" Source="Image1.jpg"/>   <ImageWidth="200"><Image.Source>
  • B、 <BitmapImage DecodePixelWidth="200"DecodePixelHeight="200"UriSource="Image1.jpg" />   </Image.Source>
  • C、 </Image><Image Width="200"><Image.Source>
  • D、 <BitmapImage DecodePixelWidth="200" UriSource="Image1.jpg" /></Image.Source> </Image>
参考答案和解析
正确答案:D
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

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

第2题:

You have a Microsoft Hyper-V Server 2008 R2 server. You need to join the server to an existing Active Directory Domain Services (AD DS) domain. Which should you use?()

  • A、oc set up
  • B、hvc onfig
  • C、sc config
  • D、net config

正确答案:B

第3题:

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

第4题:

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

第5题:

You create a Web site. The Web site has many predefined roles and associated users that will be used for security purposes. You need to manage these roles and user accounts. Which tool should you use? ()

  • A、the Microsoft .NET Framework Configuration tool
  • B、the Code Access Security Policy tool
  • C、the ASP.NET IIS Registration tool
  • D、the Web Site Administration Tool

正确答案:D

第6题:

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application named MyApp.exe. You use Microsoft Windows Installer to package the application. You create an icon file named Application.ico. You need to associate Application.ico with MyApp.exe when it is deployed. What should you do?()

  • A、 Use the File Types Editor tool.
  • B、 Rename the icon file to MyApp.exe .ico.
  • C、 Set the AddRemoveProgramsIcon property to Application.ico.
  • D、 Use the File System Editor tool to set the Icon property to Application.ico.

正确答案:D

第7题:

You work as an application developer at Contoso.com. You use Microsoft .NET Framework 3.5 and Microsoft ADO.NET to develop an application. The user name and password that is kept by the connection string is stored directly in the code of the application. You want to make sure that the password in the connection string is as protected.   What should you do? ()

  • A、 Add the connection string to the Settings.settings file.
  • B、 Add connection string to the Web.config file and use protected configuration.
  • C、 Use the TRUE setting in the Persist Security Info keyword.
  • D、 Use the FALSE setting in the Persist Security Info keyword

正确答案:B

第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.

正确答案:D

第9题:

You have a Microsoft ASP.NET Framework version 1.0 application. The application does not use any features that are deprecated in the Microsoft .NET Framework version 3.5. The application runs on Microsoft IIS 6.0.  You need to configure the application to use the ASP.NET Framework version 3.5 without recompiling the application.  What should you do?()

  • A、Edit the ASP.NET runtime version in IIS 6.0. 
  • B、Edit the System.Web section handler version number in the machine.config file. 
  • C、Add the requiredRuntime configuration element to the Web.config file and set the version attribute to v3.5. 
  • D、Add the supportedRuntime configuration element in the Web.config file and set the version attribute to v3.5.

正确答案:A

第10题:

You create a Microsoft Windows Installer file for a Windows Presentation Foundation (WPF) application that requires Microsoft .NET Framework 4. You need to ensure that the installation starts only if .NET Framework 4 is already installed on the computer. What should you do?()

  • A、 Use a custom action. 
  • B、 Set the MinVersion property to .NET Framework 4.
  • C、 Set the Version property of Windows Installer to .NET Framework 4.
  • D、 Set the Version property of the Launch Condition to .NET Framework 4.

正确答案:D

更多相关问题