位置:首页 > 题库频道 > 其它分类 > 计算机其它 > 微软MCAD 70-310 实战百题

手机扫码关注微信
随时随地刷题

微软MCAD 70-310 实战百题

推荐等级:
  • 卷面总分:100分
  • 试卷类型:模拟试题
  • 测试费用:¥5.00
  • 试卷答案:有
  • 练习次数:0
  • 作答时间:0分钟

试卷介绍

微软MCAD 70-310 实战百题

试卷预览

  • 81You create an XML Web service named LatLong that converts street addresses to latitude and longitude coordinates. Your company charges for this service and allows only existing customers to use the service.If a customer is not passed as part of a SOAP header, you want the service to refuse the request. You want these service refusal messages to be logged to an event log named LatLongLog. You anticipate that there will be a lot of these log entries over time. A string object named refusalMessage contains the message to log.Which code segment should you use?

    A.Dim log As New EventLog("LatLongLog")log.WriteEntry(refusalMessage, EventLogEntryType.Error)

    B.Dim log As New EventLog("LatLongLog") log.Source = "LatLongLog"log.WriteEntry(refusalMessage, EventLogEntryType.Error)C . If Not EventLog.SourceExists("LatLongSource") ThenEventLog.CreateEventSource("LatLongSource", "LatLongLog") End IfEventLog.WriteEntry("LatLongSource", refusalMessage, EventLogEntryType .Error)D. If Not EventLog.SourceExists("LatLongSource") ThenEventLog.CreateEventSource ("LatLongSource", "LatLongLog") End IfDim log As New EventLog ("LatLongLog")log.WriteEntry(refusalMessage, EventLogEntryType.Error)

    开始考试练习点击查看答案
  • 82You are creating an XML Web service named BankCustomer that provides customer information. You write code to keep track of error messages, warning messages, and informational messages while the service is running. You use the Trace class to write the messages to a log file.On test computers, you want to see error messages and warning messages . On deployment computers, you want to see error messages, but not warning messages.Which code segments should you use? (Each correct answer presents part of the solution. Choose two)

    A.Private mySwitch As New TraceSwitch Sub BankCustomermySwitch = New TraceSwitch ("tswitch", "a trace switch") End Sub

    B.Public Shared level As New TraceLevel Sub BankCustomerlevel = TraceLevel.ErrorEnd SubC . Trace.WriteLinelf(mySwitch.TraceError,"An error occurred.")Trace.WriteLinelf(mySwitch.TraceWarning,"Warning message")D. Trace.WriteLinelf (level = TraceLevel.Error,"The operation succeeded.u)Trace.WriteLinelf(level = TraceLevel.Warning,"Warning message")E . Trace.WriteLinelf(mySwitch <> Nothing,"An error occurred.")Trace.WriteLinelf(mySwitch <> Nothing,"Warning Message")F.Trace.Writelf(level <> TraceLevel.Off,"An error occurred.")Trace.Writelf(level <> TraceLevel.Off,"Warning Message")

    开始考试练习点击查看答案
  • 83You create an XML Web service named Servicel that exposed your company's inventory dat

    A.This data is used by other companies to place orders. Servicel must conform to existing formatting standards for inventory data.You deploy Servicel. You discover that some client applications arerejecting your XML formatting because the XML is inconsistent with the expected standard. You want to debug this problem by tracing the XML responses.What should you do?A.In the We

    B.config file, enable tracing by setting the enabled attribute of the trace element to "true"B.Inside each Web method, use the Debug class to write the contents of the inherited Context.Response property to a log file

    C.Create a SOAP extension to log the SoapMessageStage. Af- terSerialize output to a log file

    D.You want to debug this problem by tracing the XML responses.What should you do?A.In the Web.config file, enable tracing by setting the enabled attribute of the trace element to "true"B.Inside each Web method, use the Debug class to write the contents of the inherited Context.Response property to a log fileC.Create a SOAP extension to log the SoapMessageStag

    E.Af- terSerialize output to a log fileD.On each Web method, use the SoapHeader attribute to map all SOAP headers to a member variable for the Servicel class. Then use the Trace.WriteLine method to log the headers to a log file

    开始考试练习点击查看答案
  • 84You create a serviced component named SessionDispenser. This component is in the Fabrikam.Utilities assembly and is registered in a COM+ server application. SessionDi spenser has multiple callers .You discover that there are logic problems in the Create New Session method. You want to debug any calls to this method.What should you do?

    A.Open the Session Dispenser solution. Set a breakpoint on theCreateNewSession method. Start the debugger

    B.Attach the debugger to the client process. Set a breakpoint on the SessionDispenser.CreateNewSession methodC . Attach the debugger to the Fabrikam.Utilites . exe process . Set a breakpoint on the CreateNewSession methodD. Attach the debugger to a Dllhost.exe process. Set a breakpoint on the CreateNewSession method

    开始考试练习点击查看答案
  • 85You create a collection of serviced components that performs bank transfers. All the components are marked with the Transaction (TransactionOption.Required) attribute. All the methods in the components are marked with the AutoComplete () attribute.You discover that incorrect balance amounts are being transferred. You decide to debug the components. During debugging, a System. Runtime.InteropServices.COMException is thrown. The HRESULT for the exception is Ox8004EOO2. The exception includes the following message: "The root transaction wanted to commit but transaction aborted."You find that this exception occurs only during the debugging session, and not when the components run outside of the debugger. This exception is preventing you from continuing to debug the components . You need to resolve this problem.What should you do?

    A.Remove the AutoComplete attribute from each method.Within each method implementation, add calls to the Con- textUtil.SetComplete() and ContextUtil.SetAbort() methods

    B.Remove the AutoComplete attribute from each method.Within each method implementation, add calls to the ContextUtil .MyTransactionVote and ContextUtil, DeactivateOn- Return properties

    C.Increase the transaction timeout in the Component Services tool by using the Properties dialog box for My Computer

    D.Within each method implementation, add calls to the Con- textUtil.SetComplete() and ContextUtil.SetAbort() methodsB.Remove the AutoComplete attribute from each method.Within each method implementation, add calls to the ContextUtil .MyTransactionVote and ContextUtil, DeactivateOn- Return propertiesC.Increase the transaction timeout in the Component Services tool by using the Properties dialog box for My ComputerD.Replace each method implementation with the following segment:Try'Existing method body goes her

    E.FinallyContextUtil.SetComplete ()End Try

    开始考试练习点击查看答案
  • 86You create an XML Web service that calculates taxes . You deploy the service to a production computer named YourProduction. The URL of the production XML Web service is http://YourProdution/WS/TaxCalc. asmx.The service does not support all international tax rates. You want to find out which unsupported tax rates are being requested by users. If a user requests a tax rate that is not supported, the service records the request by using a trace message. You then want to view the unsupported rates that have been requested.Which two actions should you take? (Each correct answer presents part of the solution. Choose two)

    A.Modify the trace element in the We

    B.config file of the service by setting the pageOutput attribute to "true"B.Modify the trace element in the Web.config file of the service by setting the enabled attribute to "true"

    C.To the constructor of the TaxCalc class, add the following code segment:Public Function TaxCalc()Initiali2eComponent()Trace.AutoFlush * True End Function

    D.To the constructor of the TaxCalc class, add the following code segment:Public Function TaxCalc()InitializeComponent()Trac

    E.AutoFlush * True End FunctionD.To the constructor of the TaxCalc class, add the following code segment:Public Function TaxCalc()InitializeComponent()Trace.Flush 0End FunctionE.View the page at http://YourProduction/WS/TaxCalc.aamx

    F.View the page at http://YourProduction/WS/Trace.axd

    开始考试练习点击查看答案
  • 87You create an XML Web service that provides stock information to the customers of Fabrikam, Inc. You successfully test the service. You are now ready to deploy the service to a new virtual directory on a production computer.You want to deploy the service without having to manually configure any settings on the production computer.Which deployment mechanism should you use?

    A.FTP

    B.Xcopy command

    C.Web setup project

    D.Copy Project command

    开始考试练习点击查看答案
  • 88You have an ASP.NET application named YourWebApp. This application uses a private assembly named Employee to store and retrieve employee dat

    A.Employee is located in the bin directory of YourWebApp.You develop a new ASP.NET application named YourWebApp2 that also needs to use Employee. You assign Employee a strong name, set its version to 1.0.0.0, and install it in the global assembly cache. You then create a publisher policy assembly for version 1.0.0.0 and install it in the global assembly cache.You compile YourWebApp2 against version 1.0.0.0 . You do not recompile MyWebApp. You then run YourWebApp.What is the most likely result?A.A VersionNotFoundException is thrown

    B.Employee is loaded from the bin directory

    C.Version 1.0.0.0 of Employee is loaded from the global assembly cache

    D.Version 1.0.0.0 of Employee is loaded by the publisher policy assembly

    开始考试练习点击查看答案
  • 89You have an application named MyApp that contains a reference to version 1.0.0.0 of a strongly named serviced component named YourComponent. This component is located in the bin directory of MyApp.You receive version 2.0.0.0 of YourComponent, which you install in the global assembly cache. You reconfigure the application configuration file to redirect calls to version 2.0.0.0 .You now receive version 3.0.0.0 of YourComponent, which you install in the global assembly cache. You do not reconfigure the application configuration file. You then run MyApp.Which version of YourComponent is loaded and from which location is it loaded?

    A.Version 1.0.0.0 from the bin directory

    B.Version 2.0.0.0 from the global assembly cache C . Version 2.0.0.0 from the bin directoryD. Version 3.0.0.0 from the global assembly cache

    开始考试练习点击查看答案
  • 90You are creating a Visual Studio .NET assembly, which will run as a shared assembly with other applications. The assembly will be installed in the global assembly cache. You will distribute the assembly to many customers outside your company.You must ensure that each customer receives your assembly without alteration, in a way that reliably specifies the origin of the code.What should you do?

    A.Sign the assembly by using a strong name. Do nothing further

    B.Sign the assembly by using File Signing tool (Signcode.exe). Do nothing further

    C.First sign the assembly by using a strong name. Then sign the assembly by using File Signing tool (Signcode.exe)

    D.First sign the assembly by using File Signing tool (Signcod

    E.exe) .Then sign the assembly by using a strong name

    开始考试练习点击查看答案
 9/10   首页 上一页 7 8 9 10 下一页 尾页
返回顶部