软件高职网http://www.rjjd.com 微软认证中文题库交流
inherits from the XmlSchema class.
创建一个基于架构并继承XmlSchema类的TKDataSet类 E. Create a key pair for TKDataSet by using the Strong Name tool (Sn.exe). 为TkDataSet创建由sn.exe产生的一对密钥
Answer: A, C
你正计划创建名为myDataSet的DataSet对象,以用于一个债券交易应用程序.几位开发人员需要编写操作myDataSet的代码,而您希望确保myDataSet易于他们使用.您决定将myDataSet创建为强类型数据集.
您应该采取哪两项措施?(每个正确答案都给出部分解决方案,请选择两个答案) A. 创建一个定义myDataSet的XSD架构. B. 创建一个定义myDataSet 的XSD架构.
C. 针对myDataSet,创建一个基于该架构并从DataSet类继承的类. D. 针对myDataSet,创建一个基于该架构并从XmlSchema类继承的类 E. 使用”强名称”工具(sn.exe),为myDataSet创建一个密钥对.
答案:AC
注: 原题 Explanation:
A: The XML Schema definition language (XSD) enables you to define the structure and data
types for XML documents. Given an XML Schema that complies with the XML Schema
definition language (XSD) standard, you can generate a strongly typed DataSet,
C: The class should inherit from the DataSet class.
48 You develop an ADO.NET application that uses a Microsoft SQL Server database and a SqlClient data provider. Your application includes the following four code segments, which are each called once:
你开发一个ADO.NET应用程序,用得是Microsoft SQL Server 数据库和SqlClient 数据引擎.你的应用程序包括下列的4部分代码片段,每个都调用一次:
SqlConnection myConnection1 = new SqlConnection(); myConnection1.ConnectionString = “Data Source=TestKServer;” + “Initial Catalog=Billing;Integrated Security=true”;
myConnection1.Open();
SqlConnection myConnection2 = new SqlConnection();
myConnection2.ConnectionString = “Data Source=TestKServer;” + “Initial
软件高职网 http://www.rjjd.com 微软认证中文题库交流
软件高职网http://www.rjjd.com 微软认证中文题库交流
Catalog=Billing;Integrated Security=True”; myConnection2.Open();
SqlConnection myConnection3 = new SqlConnection();
myConnection3.ConnectionString= “Data Source=TestKingServerB;” + “Initial Catalog=Search;Integrated Security=true”; myConnection3.Open();
SqlConnection myConnection4 = new SqlConnection();
myConnection4.ConnectionString = “Data Source=TestKServer;” + “Initial Catalog=OrderEntry;Integrated Security=true”;
myConnection4.Open();
You verify that your application is the only application that is using SQL Server. Your application runs all code segments by using the same identity. You run the application. Connection pooling is enabled, and the entire application runs within the connection timeout parameter. 你核实了,你的应用程序是唯一用SQL Server的程序.你执行了所有的应用程序,连接池被激活,并在连接超时前执行完整个程序
How many connection pools are created? 有多少链接池被创建?
A. One B. Two C. Three D. Four
Answer: C 注:原题
解析:数据库连接池断判,可以看连接字符串,如果是一样的,就是同一个,如果是不一样的,特别是顺序不一样,也是不同的连接池 49
You have a SqlDataReader object named ordersDataReader. This object contains a column named OrderQuantity that has an integer value. This object also contains one row for each order received during the previous week. You need to write code that will process each row in ordersDataReader and pass OrderQuantity to a function named myFunction.
软件高职网 http://www.rjjd.com 微软认证中文题库交流
软件高职网http://www.rjjd.com 微软认证中文题库交流
Which code segment should you use?
你有一个名为ordersDataReader的SqlDataSet 对象.这个对象包括一个integer值,名为OrderQuantity的列.这个对象也包括上周所接收到的订单的行.你必须写代码用来处理ordersDataReader中的每一行,传递OrderQuantity 到名为myFunction的函数. 哪一代码片段你应该选择?
A. long weeklyOrderQuantity = 0; while (ordersDataReader.Read()) {
myFunction((int)ordersDataReader[“OrderQuantity”]); }
B. long weeklyOrderQuantity = 0;
while (ordersDataReader.NextResult()) {
myFunction((int)ordersDataReader[“OrderQuantity”]); }
C. long weeklyOrderQuantity = 0; int orderCount = 0;
while (orderCount < ordersDataReader.FieldCount) { myFunction((int)ordersDataReader[“OrderQuantity”]); orderCount++;
ordersDataReader.Read(); }
D. long weeklyOrderQuantity = 0; int orderCount = 0;
while (orderCount < ordersDataReader.FieldCount) { myFunction((int)ordersDataReader[“OrderQuantity”]);
orderCount++;
ordersDataReader.NextResult(); }
Answer: A 注: 解析:使用DataReader 对象,都有用到DataReader.Read(),用于判断数据是不是到达了底线 *50 You are creating an XML Web service named ApproveService that is available only on your TestKing’s intranet. The service exposes a Web method named Close that update the status of open work orders to “closed”. You
软件高职网 http://www.rjjd.com 微软认证中文题库交流
软件高职网http://www.rjjd.com 微软认证中文题库交流
configure ApproveService to use only Integrated Windows authentication. You must ensure that access to specific functionality within the service is based on a user’s membership in specific Windows groups. You want to accomplish this by using role-based security. You want to allow all members of the Reviewers group and of the Admins group to be able to execute the Close method without creating a third group that contains member from both groups.
Which code segment should you use?
你创建了一个名为ApproveService的XML Web Service ,只用于Testking企业的内部网络.服务公布一个名为Close的Web 方法,用于更新一些状态为Open work为 “Closed”.你配置ApproveServiec,只用Integrated Windows验证方式.你必须确认用基于特殊Windows 组的成员,可以正常的访问。你要完成这个过程,用基于角色的身份验证,你要允许所有的成员在可访问的组内,Admin Group能执行Close这个方法,这些都有是在没有创建成第三个组的,里面包括这两个组的所在成员.
哪一个代码片段你应该选择?
A. [PrincipalPermissionAttribute
(SecurityAction.Demand,Role=”Reviewers, Admins”)] private void Close() {
// Code to process the Close method goes here. }
B. [PrincipalPermissionAttribute
(SecurityAction.Demand, Role=”Reviewers”)] [PrincipalPermissionAttribute
(SecurityAction.Demand, Role=”Admins”)] private void Close() {
// Code to process the Close method goes here. }
C. private void Close() {
PrincipalPermission myPermission1 = new PrincipalPermission(“Nothing”, “Reviewers”); PrincipalPermission myPermission2 = new PrincipalPermission(“Nothing”, “Admins”); myPermission1.Demand(); myPermission2.Demand();
// Code to process the Close method goes here. }
软件高职网 http://www.rjjd.com 微软认证中文题库交流
软件高职网http://www.rjjd.com 微软认证中文题库交流
D. private void Close() {
PrincipalPermission myPermisssion3 = new
PrincipalPermission(“Nothing”, “Reviewers, Admins”);
myPermission3.Demand();
// Code to process the Close method goes here. }
Answer :B 51
TestKing provides a credit card processing application for its customers. The current application supports only computers that run on a Microsoft Windows operating system. You are asked to rewrite the current application as a .NET application. This .NET application does not need to be backward compatible with the current application. You must ensure that this new application meets the following requirements: 。 Must support asynchronous processing.
。 Must be able to pass data through firewalls.
。 Must pass only SOAP-Compliant formatted data validated by using an XSD schema.
。Must not be limited to client computers running on a Microsoft operating system. You want to accomplish this task by using the minimum amount of development effort.
Which type of .NET application should you use?
TestKing 为客户提供一个处理银行存款的应用程序.当前应用程序只能在Microsoft OS上执行.你要用.NET重写当前应用程序。这个.net 应用程序不能比当前的应用程序差。你必须确保这个新的应用程序满足以下的要求: .必须提供对异步编程的支持 .必须能够通去firwalls
.必须通过SQAP-Compliant ,应用XSD 架构格式化数据 .必须限制客户端使用Microsoft OS 你要完成这个任务,用最少的开发时间。 哪个.NET应用程序类型,你应该选择? A. Windows service B. XML Web service C. Serviced component D. .NET Remoting object
Answer: B 52
You are creating a .NET Remoting object named Payroll. The Payroll class allows remote client applications to access payroll data for your company.
软件高职网 http://www.rjjd.com 微软认证中文题库交流