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

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

微软MCAD 70-310 实战百题

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

试卷介绍

微软MCAD 70-310 实战百题

试卷预览

  • 61You are creating an XML Web service named ListBoxService. This service provides content, such as states, countries, and geographical regions, for use in dropdown list boxes.ListBoxService contains a Web method named RetrieveRegionsListBox. This method runs a DataSet object that contains every geographical region in the world.RetrieveRegionsListBox calls a Microsoft SQL Server database to load the DataSet object with region dat

    A.You want to minimize the amount of time the method takes to return to the caller.What should you do?A.Use a stored procedure to return the data

    B.Store each DataSet object by using the Session object

    C.Set the BufferResponse property of the Web Method attribute to false

    D.Set the CacheDuration property of the WebMethod attribute to an interval greater than zero

    开始考试练习点击查看答案
  • 62Your Microsoft SQL Server 6.5 database contains a table named PurchaseOrders that consists of more than 1 million rows.You are developing an application to populate a DataReader object with data from PurchaseOrders. You want to ensure that the application processes the data as quickly as possible.You create a SQL SELECT statement in a local variable named YourSQLSelect You need to instantiate a SqlConnection object and a SqlCommand object that you will use to populate the DataReader object.Which code segment should you use?

    A.Dim myConnection As New OleDbConnection —(rayOleDbConnectionString)Dim YourCommand As New OleDbCommand (YourSQLSelect)

    B.Dim myConnection As New OleDbConnection (myOleDbConnectionString)Dim YourCommand As New OleDbCommand (YourSQLSelect, myConnection)

    C.Dim myConnection As New SqlConnection _(mySqlConnectionString)Dim YourCommand As New SqlCommand (YourSQLSelect)

    D.Dim myConnection As New SqlConnection (mySqlConnectionString)Dim YourCommand As New SqlCommand (YourSQLSelect, myConnection)

    开始考试练习点击查看答案
  • 63Your Microsoft SQL Server database contains a table named Orders. Orders is used to store new purchase orders as they are entered into an orderentry application. To keep up with customer demand, the order fulfillment department wants to know at 15-minute intervals when new orders are entered.You need to develop an application that reads Orders every 15 minutes and sends all new orders to the order fulfillment department. The application will run on computer that is used by several users who continuously log on and log off from the network to perform miscellaneous tasks.Which type of .NET application should you use?

    A.Windows Form

    B.Windows service

    C.XML Web service

    D..NET Remoting object

    开始考试练习点击查看答案
  • 64You are creating a .NET Remoting object named BankOps. BankOps exposes methods for creating, finding, and modifying objects in a class named BankCustomer. BankCustomer has a large number of read/write properties.You expect a large number of remote client applications to frequently connect to BankOps. You expect these remote client applications to use many of the BankCustomer properties. You want to ensure that network traffic is minimized.What should you do?

    A.Add the Serializable attribute to the BankCustomer class

    B.Implement the IDisposable interface in the BankCustomer class

    C.Derive the BankCustomer class from ContextBoundObject

    D.Derive the BankCustomer class from MarshalByRefObject. Override the inherited InitializeLifetimeService method to return null

    开始考试练习点击查看答案
  • 65You create two serviced components named OrderPipeline and Or- derAdmin. Each component is registered in a separate COM+ server application. Both components use pricing dat

    A.OrderPipeline reads the pricing data for placing user orders. OrderAdmin modifies the pricing data.You want to ensure that OrderPipeline accesses the pricing data as quickly as possible, while still being able to immediately retrieve any pricing changes made by OrderAdmin.What should you do?A.Store the pricing data in the Shared Property Manager

    B.Store the pricing data in Microsoft SQL Server database

    C.Store the pricing data in a Hashtable object within OrderAdmin. Expose the Hashtable object through a property on OrderAdmin

    D.Store the pricing data in an XmlDocument object within OrderAdmin. Expose the XmlDocument object through a property on OrderAdmin

    开始考试练习点击查看答案
  • 66You create an XML web service that retrieves data from Microsoft SQL Server database. You instantiate a SqlConnection object named YourConnection and set the Max Pool Size property of the conne- ctionString to 50.All 50 connections are now in use. However, a request for connection number 51 is received.What is the most likely result?

    A.An exception is immediately thrown

    B.The current connection pool is expanded by 50 additional connections

    C.A new connection pool is created that has the same maximum number of connections

    D.The request is queued until a connection becomes available or until the timeout limit is reached

    开始考试练习点击查看答案
  • 67You are planning to create a DataSet object named YourDataSet to be used in a bond-trading application. Several developers will need to write code to manipulate YourDataSet, and you want to ensure that YourDataSet is easy for them to use . You decide to create YourDataSet as a strongly typed data set.Which two actions should you take? (Each correct answer presents part of the solution. Choose two)

    A.Create an XSD schema that defines YourDataSet

    B.Create an XDR schema that defines YourDataSet

    C.Create a class for YourDataSet that is based on the schema and that inherits from the DataSet class

    D.Create a class for YourDataSet that is based on the schema and that inherits from the XmlSchema class

    E.Create a key pair for YourDataSet by using the Strong Name tool(Sn.exe)

    开始考试练习点击查看答案
  • 68You are developing an application that retrieves a list of geographical regions from a table in a Microsoft SQL Server database. The list of regions is displayed in a dropdown list box on a Windows Form. .You want to populate the list box with data from a DataSet object. You want to fill the DataSet object by using a SqlDataAdapter object.You create a SqlConnection object named YourConnection and a SQL query string named regionSQL. You need to write the code to create the SqlDataAdapter object.Which code segment should you use?

    A.Dim myDataAdapter As New SqlDataAdapter()myDataAdapter.SelectCommand.Connection = MyConnection myDataAdapter.SelectCommand.CommandTexc = regionSQL

    B.Dim myDataAdapter As New SqlDataAdapter(regionSQL, MyConnection)C . Dim SqlCmd As New SqlCommand(regionSQL)Dim myDataAdapter As New SqlDataAdapter() myDataAdapter.SelectCommand.Connection = MyConnection myDataAdapter.SelectCommand = SqlCmdD. Dim SqlCmd As New SqlComrnand ()Dim myDataAdapter As New SqlDataAdapter()SqlCmd.CommandText = regionSQLmyDataAdapter.SelectCommand.Connection = MyConnection myDataAdapter.SelectCommand = SqlCmd

    开始考试练习点击查看答案
  • 69Your Microsoft SQL Server database contains a table named Orders. Due to a recent increase in product sales, Orders now contains more than 500,000 rows.You need to develop an application to produce a report of all orders in the table. You need to ensure that the application processes the data as quickly as possible.Which code segment should you use?

    A.Dim myOleDbConnection As New OleDbConnection _ ("Data Source=(local)/& "Initial Catalog=Northwind;& "Integrated Security=true")Dim myOleDbCommand As New 01eDbCommand_("SELECT * FROM Orders" , myOleDbConnection)Dim ordersDataReader As OleDbDataReader MyOleDbConnection.Open ()OrdersDataReader = myOleDbcorrunand. Execut eReader

    B.Dim myOleDbConnection As New OleDbConnection _("provider=sqloleDb;Data Source= (local);& "Initial Catalog=Northwind/" _& "Integrated Security=true")Dim myOleDbCommand As New 01eDbCommand_("SELECT * FROM Orders" , myOleDbConnection)Dim ordersDataReader As OleDbDataReader myOleDbConnection.Open()ordersDataReader = myOleDbCommand.ExecuteReader

    C.Dim myConnection As New SqlConnection("Data Source= (local);Initial Catalog=Northwind;" & "Integrated Security=true")Dim myConur.and as new SqlCommand_("SELECT * FROM Orders" , myConnection)Dim ordersDataReader As SqlDataReader Myconnection.Open()OrdersDataReader = mycomman

    D.ExecuteReaderD.Dim myConnection As New SqlConnection __("Data Source= (local); Initial Catalog=Northwind;" _& "Integrated Security=true")Dim myCorrjr.and as New SqlCommand ("SELECT * FROM Orders") Dim ordersDataReader As SqlDataReader Myconnection.Open()ordersDataReader = myCommand.ExecuteReader

    开始考试练习点击查看答案
  • 70You have a DataSet object named ordersDataSet. This object contains two DataTable objects named Orders and OrderDetails. Both Orders and OrderDetails contain a column named OrderlD.You create a DataRelation object named orderRelation between Orders and OrderDetails on OrderlD. Order is the parent table. OrderDetails is the child table.You add orderRelation to the ordersDataSet relation collection by using the following of code:ordersDataSet.Relations.Add(orderRelation)You verify that prior to adding orderRelation, there were no constraints on either table You then run the line of code.How many constraints does each table have now?

    A.One on Orders; none on OrderDetails

    B.None on Orders; one on OrderDetails

    C.None on Orders; none on OrderDetails

    D.One on Orders; one on OrderDetails

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