You are creating an application using Visual Studio 2010. Th

题目
单选题
You are creating an application using Visual Studio 2010. The application consumes a Windows Communication Foundation (WCF) service.You are adding a service reference to the WCF service. You need to ensure that the generated proxy does not block the calling thread when executing a service method. What should you do when adding the service reference? ()
A

Set the Collection type to ObservableCollection.

B

Select the Reuse types in all referenced assemblies option.

C

Select the Generate asynchronous operations option.

D

Select the Always generate message contracts option.

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

第1题:

You are developing an ASP.NET application by using Visual Studio 2010. You need to interactively debug the entire application. Which two actions should you perform? ()

  • A、Set the Debug attribute of the compilation node of the web.config file to true.
  • B、Add a DebuggerDisplay attribute to the code-behind file of the page that you want to debug.
  • C、Select the ASP.NET debugger option in the project properties.
  • D、Define the DEBUG constant in the project settings.

正确答案:A,C

第2题:

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

第3题:

You work as an application developer at Certkiller .com. Certkiller .com uses an application that calculates monthly payments based upon client input.You are currently debugging this application using the Microsoft Visual Studio 2005 IDE.The application contains the following code:public double CalculateMonthlyPayment (Single rate, double principal) {//Implementation code}You have discovered that unexpected results are being returned by the application. You would like to pause execution and display a message box containing an error message in the event of a negative or zero rate value is Passed to the CalculateMonthlyPayment method.You need to ensure that this only occurs during debugging mode.What should you do?()

A.

B.

C.

D.


参考答案:A

第4题:

A Windows Azure application is running in the development fabric.   You need to recommend an approach for deploying the application to Windows Azure.  What should you recommend?()

  • A、 Use XCopy deployment.
  • B、 Use the Windows Azure AppFabric.
  • C、 Use the Windows Azure Storage Services REST API.
  • D、 Use the Windows Azure Tools for Microsoft Visual Studio 2010.

正确答案:D

第5题:

You develop a Web application. Your application contains two settings in the Web.config file. You deploy your application to production. You need to modify the application settings in the production environment without manually editing the XML markup in the Web.config file. What should you do? ()

  • A、Modify the application settings by using the Web Site Administration Tool.
  • B、Modify the application settings by using the Visual Studio property page editor for the project.
  • C、Modify the application settings by using the resource editor.
  • D、Modify the application settings by using the Visual Studio start options editor.

正确答案:A

第6题:

You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform.  You are creating an ASP.NET Web application using .NET Framework 4.0. The Web application comprises a class named Employee with properties named as First Name, Last Name, and Age. You add a Web page in which you get a list of Employee objects and display those objects in a GridView control. You are required to add code so that the GridView row is highlighted in red color if the age of the employee is less than 21 years.  What will you do to accomplish this?()

  • A、Use the RowCommand event of the GridView control.
  • B、Use the SelectedlndexChanged event of the GridView control.
  • C、Use the RowDataBound event of the GridView control.
  • D、Use the RowEditing event of the GridView control.
  • E、Use the RowUpdated event of the GridView control.

正确答案:C

第7题:

You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5.  A third-party assembly contains custom server controls. This assembly does not contain a strongname and it’s not part of the application’s Microsoft Visual Studio 2008 solution. You have to makesure that the other users are able to use the custom controls. You decide to configure theapplications project.  What should you do?()

  • A、You should add a project reference to the project.
  • B、You should add a Web reference to the project.
  • C、You should add a service reference to the project.
  • D、You should add an assembly reference to the project.

正确答案:D

第8题:

Certkiller.com has employed you as a system administrator. You are in the process of creating anASP.NET AJAX application using .NET Framework v3.5.  You receive an instruction from management to debug the JavaScript code in the application. Youthen attach Microsoft Visual Studio 2008 debugger to the Microsoft Internet Explorer instance. Youneed to make sure that the details of the client side object on the debugger console is displayedon the application.  What should you do?()

  • A、This can be achieved using the Sys.Debug.fail method.
  • B、This can be achieved using the Sys.Debug.traceDump method.
  • C、This can be achieved using the Sys.Debug.trace method.
  • D、This can be achieved using the Sys.Debug.assert method.

正确答案:B

第9题:

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You discover that when the application runs, a user control is not rendered correctly. You need to find out the user interface (UI) element of the window that is causing the rendering problem. What should you do?()

  • A、 Use the Local Window.
  • B、 Use the WPF Visualizer.
  • C、 Generate a trace log by using IntelliTrace.
  • D、 Set a breakpoint at the control. Run the application.

正确答案:B

第10题:

You are employed as a network administrator at Certkiller.com. You are in the process of creatingan Asp.Net application using Microsoft .NET Framework v3.5.  The application is hosted on a server named CERTKILLER-SR01. CERTKILLER-SR01 isconfigured to run Microsoft IIS 6.0. You receive several requests from management to set upCERTKILLER-SR01 for remote debugging. You need to make use of CERTKILLER-WS01 inorder to debug the application remotely.  What should you do?()

  • A、This can be accomplished by attaching Microsoft Visual Studio.NET to the inetinfo.exe process.
  • B、This can be accomplished by attaching Microsoft Visual Studio.NET to the Msvsmon.exeprocess.
  • C、This can be accomplished by attaching Microsoft Visual Studio.NET to theWebDev.WebServer.exe process.
  • D、This can be accomplished by attaching Microsoft Visual Studio.NET to the w3wp.exe process.

正确答案:D

更多相关问题