题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-01-31 01:24:14

[单项选择] You are creating a client application and configuring it to call a Windows Communication Foundation (WCF) service.When the application is deployed, it will be configured to send all messages to a WCF routing service. You need to ensure that the application can consume the target service after the application is deployed. What should you do?()
A. In the client application, add a service reference to the router service. In the client binding configuration, specify the address of the router service.
B. In the client application, add a service reference to the target service. In the client binding configuration, specify the address of the target service.
C. In the client application, add a service reference to the router service. In the client binding configuration, specify the address of the target service.
D. In the client application, add a service reference to the target service. In the client binding configuration, specify the address of the router service.

更多"You are creating a client applicati"的相关试题:

[单项选择] 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.
[单项选择] You are creating a Web application that will run on an intranet. The Web application reads comma-delimited text files. The text files reside in a subdirectory below the Web application's root directory. Users must not be able to navigate directly to these files in a Web browser unless they are members of the Accounting role. You need to write an ASP.NET HTTP handler that will use the FileAuthorizationModule class. Which form of authentication should you use?()
A. Anonymous
B. Certificate
C. Forms
D. Microsoft Windows Integrated Security
[单项选择] You are developing a client application that uses the following code to consume a Windows Communication Foundation (WCF) service.(Line numbers are included for reference only.) 01 BasicHttpBinding myBinding = new BasicHttpBinding( ); 02 EndpointAddress myEndpointAddress = new EndpointAddress("http://contoso.com/TaxService.svc"); 03 ... 04 ITaxService client = channelFactory.CreateChannel( ); 05 string data = client.GetData(1); You need to consume the service. Which code segment should you insert at line 03?()
A. var channelFactory = new ChannelFactory();
B. var channelFactory = new ChannelFactory(myBinding);
C. var channelFactory = new ChannelFactory(myBinding, myEndpointAddress);
D. var channelFactory = new ChannelFactory("http://contoso.com/TaxService.svc");

[单项选择] You are developing a client application that consumes a Windows Communication Foundation (WCF) service. The operation contract is as follows. [OperationContract] [FaultContract(typeof(SalesFault))] string GetSales(string saleId);() The service configuration file contains the following line in the serviceBehaviors section. A divide-by-zero exception is not being handled by the service. You need to ensure that the exception is caught in the client application. Which type of exception should the client catch?()
A. TimeoutException
B. FaultException
C. DivideByZeroException
D. FaultException
[单项选择] You need to modify a client application that consumes a Windows Communication Foundation (WCF) service. The service metadata is no longer available. You need to modify the previously generated proxy to include asynchronous calls to the service. What should you do? ()
A. Update the service reference with the Generate asynchronous operations option.
B. Create a partial class for the previously generated proxy and include the new asynchronous methods.
C. Create a class with the same name as the previously generated proxy and add the new asynchronous methods. Add the new class to a namespace that is different from the original proxy.
D. Create a class with the same name as the previously generated proxy and add the new asynchronous methods as partial methods. Add the new class to a namespace that is different from the original proxy.
[多项选择] You are creating an ASP.NET web application that hosts several Windows Communication Foundation (WCF) services. The services have ASP.NET Compatibility Mode enabled. Users authenticate with the Web application by using a cookie-based ASP.NET Forms Authentication model. You add a service file named Authentication.svc that contains the following code segment: <%@ ServiceHost Service="System.Web.ApplicationServices.AuthenticationService" Factory="System.Web.ApplicationServices.ApplicationServicesHostFactory" %> You need to ensure that users can access the WCF services without having to re-authenticate. Which two configuration settings should you add? (Each is part of a complete solution. Choose two.)()
A. In the system web. Extensions scripting/webServices/authenticationService element, set the enabled attribute to true.
B. In the system web. Extensions scripting/webServices/profileService element, set the enabled attribute to true.
C. Add a service endpoint with basicHttpBinding for the contract System.Web.ApplicationServices.AuthenticationService.
D. Add a custom service behavior named AuthenticationService Type Behaviors with a service AuthenticationManager element that has service AuthenticationManagerType set to System.Web.Security.SQL Membership Provider
[单项选择] You are creating a DataTable. You use the following code segment to create the DataTable. (Line numbers are included for reference only.) 01 Dim dt As New DataTable("Products") 02 dt.Columns.Add(New DataColumn("Price", _ GetType(Decimal))) 03 dt.Columns.Add(New DataColumn("Quantity", _ GetType(Int32))) 04 Dim dc As DataColumn = New DataColumn("Total", _ GetType(Decimal)) 05 dt.Columns.Add(dc) You need to ensure that the Total column is set to the value of the Price column multiplied by the Quantity column when new rows are added or changed. What should you do? ()
A. Add the following code segment after line 05. dc.ExtendedProperties("Total") = "Price * Quantity"
B. Add the following code segment after line 05. dc.Expression = "Price * Quantity"
C. Write an event handler for the DataTable's TableNewRow event that updates the row's Total.
D. Write an event handler for the DataTable's ColumnChanged event that updates the row's Total.
[多项选择]You are creating a Web Form. You write the following code segment to create a SqlCommand object. SqlConnection conn = new.SqlConnection(connString); conn.Open( ); SqlCommand cmd = conn.CreateCommand( ); cmd.CommandText = “select cont(*) from Customers”; You need to display the number of customers in the Customers table. Which two code segments can you use to achieve this goal? ()
A. object customerCount = cmd.ExecuteScalar();lblCompanyName.Text = customerCount.ToString();
B. int customerCount = cmd.ExecuteNonQuery();lblCompanyName.Text = customerCount.ToString();
C. SqlDataReader dr = cmd.ExecuteReader();dr.Read();lblCompanyName.Text = dr[0].ToString();
D. SqlDataReader dr = cmd.ExecuteReader();dr.Read();lblCompanyName.Text = dr.ToString();
[单项选择] A client application calls a Windows Communication Foundation (WCF) service with a proxy class that was generated by Visual Studio.The service binding was changed from wsHttpBinding to basicHttpBinding. The method signatures in the service contract are changed.After these changes, the client application receives errors when calling methods on the service.You need to ensure that the client can invoke methods on the service successfully. What should you do?()
A. Update the configuration file to use basicHttpBinding.
B. Enable anonymous authentication for the service.
C. Copy the configuration file elements under the element from the service back to the client.
D. Update the service reference.

[单项选择] You are designing the configuration of the external DNS server to meet the business and technical requirements.  What should you do? ()
A.  Configure a root zone on the external DNS server.
B.  Configure a stub zone for.com on the external dns server.
C.  Configure the external DNS server to use the default root hints.
D.  Configure the External DNS server to use the ISP’S DNS server as a forwarder.
[单项选择]You create an application. The application processes hundreds of XML documents per minute. The XML documents are validated against inline schemas. You need to load XML documents from the file system and read them as quickly as possible. XML comments must be ignored while reading the XML documents. What should you do?()
A. Create an instance of the XmlReader class by using the XmlReader Create method with an instance of the XmlReaderSettings class.
B. Create an instance of the XmlReader class with an instance of the XmlTextReader class.
C. Create an instance of the XmlDocument class and specify a location for the application schema.
D. Create an instance of the XmlReader class with an instance of the XmlNodeReader class.
[单项选择]Enclosed you ________an application form that you are asked to fill out.
A. will find
B. find
C. found
D. are finding
[多项选择]You create a Web application. You need to turn on Tracing for a page that is not performing well. You must store the trace information in a database for reporting and trending. Which two actions should you perform? ()
A. Add a TraceContextEventHandler to the Trace.TraceFinished event to add the trace records into the database.
B. Add a system.diagnostics section to the Web.config file. Then add a listener to the new section.
C. Use the System.Diagnostics.Trace object to connect to a database. Then insert the trace records.
D. In the Page_Load for the page, place the Trace.Write call into a SQL INSERT statement.

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码