IT认证考试网

设为首页

收藏本站

首页 >> IT认证考试网 >> 微软认证考试 >> 微软认证试题 >> microsoft认证模拟试题 >> 正文

微软MCSD.NET 70-320 TestInside认证考试题库

·上一篇文章:   &  ·下一篇文章:

来源:   点击数:     录入时间:07-05-09 09:16:06

1.You are developing an order-processing application that retrieves data from a Microsoft SQL Server database. The database contains a table named Customers and a table named Orders.  Customers has a primary key of CustomerID. Each row in Orders has a CustomerID that indicates which customer placed the order.  Your application uses a DataSet object named ordersDataSet to capture customer and order information before it is applied to the database. The ordersDataSet object has two DataTable objects named Customers and Orders.  You want to ensure that a row cannot exist in the Orders DataTable object without a matching row existing in the Customers DataTable object.  Which two actions should you take? (Each correct answer presents part of the solution. Choose two.) A:Create a foreign key constraint named ConstraintOrders that has Orders.CustomerID as the parent column and Customers.CustomerID asthe child column.B:Create a foreign key constraint named ConstraintCustomers that has Customers.CustomerID as the parent column and Orders.CustomerIDas the child column.C:Create a unique constraint named UniqueCustomers by using the Customers.CustomerID.D:Add ConstraintOrders to the Orders DataTable.E:Add ConstraintOrders to the Customers DataTable.F:Add ConstraintCustomers to the Orders DataTable.G:Add ConstraintCustomers to the Customers DataTable.H:Add UniqueCustomers to the Customers DataTable.Correct Answers:  B, F 2.You create a Windows service that processes XML messages placed in an MSMQ queue. You discover that the service is not functioning properly.  You need to debug the service to correct the problem.  What should you do? A: Start the Windows service. Then attach a debugger to the process.B: Attach a debugger to the Windows service. Then start the Windows service.C: Start the Windows service. Then run the .NET Services Installation tool (Regsvcs.exe).D: Place a breakpoint in the Main method of the Windows service. Then run the application within the Visual Studio .NET integrated development environment (IDE).Correct Answers:  A 3.You create an XML Web service named myService. This service exposes a Web method named MyMethod. You need to register myService in UDDI. First, you add a new business name and a new tModel. You now need to list a valid access point to myService. Which URL should you use? A: http://YourServer/AppPath/myServiceB: http://YourServer/AppPath/myService?wsdlC: http://YourServer/AppPath/myService.asmxD: http://YourServer/AppPath/myService.asmx?MyMethodCorrect Answers:  C 4.You are developing a Windows-based application that requires the use of a calculation function named CalculateValue. This function includes the following signature:          int CalculateValue(int);  CalculateValue is located in an unmanaged DLL named UsefulFunctions.dll, and is not part of a COM interface. You need to be able to use CalculateValue in your application. Your project directory contains a copy of UsefulFunctions.dll.  While you are working in Debug mode, you attempt to run your application. However, a System.DllNotFoundException is thrown.  You verify that you are using the correct function name. You also verify that the code in the DLL exposes CalculateValue. You have not modified the project assembly, and you have not modified machine-level security. You need to test your application immediately. What should you do? A: Move UsefulFunctions.dll to your project's bin directory.B: Move UsefulFunctions.dll to your project's Debug directory.C: Immediately before the declaration of CalculateValue, add the following code segment:[SuppressUnmanagedCodeSecurityAttribute()]D: Immediately before the call to CalculateValue, add the following code segment:SecurityPermission perm = new SecurityPermission(SecurityPermissionFlag.UnmanagedCode);perm.Assert();Correct Answers:  B 5.You create an XML Web service named MyService. You must ensure that this service meets the following URL authorization requirements:        Anonymous access must be disabled for MyService.      An authenticated user named User1 cannot access MyService.      All other authenticated users can access MyService.  You configure Internet Information Services (IIS) to meet these requirements. You now need to configure the authorization section in the Web.config file to properly authorize the users.  Which code segment should you use? A: B: C: D: Correct Answers:  D 6.You create a .NET Remoting object named ChatServer. ChatServer is the central server for a group of chat client applications.  Client applications send string chat messages to ChatServer. ChatServer then broadcasts each message to all registered chat client applications. ChatServer uses an HTTP remoting channel to communicate with the client applications.  The ChatServer class includes the following code segment:6.You need to write a client application that includes a class named ChatClient to communicate with ChatServer. You want ChatClient to send and display chat messages.  What should you do? A: Implement the IDeserializationCallback interface in ChatClient.Implement an event handler for the Submission event.B: Derive ChatClient from System.Object.Implement the ISerializable interface.Implement an event handler for the Submission event.C: Implement the ISerializable interface in ChatClient.Implement an event handler for the Submission event.Host ChatClient in Internet Information Services (IIS) by using a Web.config file.D: Derive ChatClient from MarshalByRefObject.Implement an event handler for the Submission event.Configure ChatClient to listen on an HttpChannel.Correct Answers:  D 7.You have a .NET Remoting object named Scheduler. The Scheduler class is in an assembly file named TaskScheduler.dll.  The Scheduler class is hosted by an application named SchedulerServer.exe. This application is configured by using a file named SchedulerServer.exe.config. This file configures the Scheduler class to be a client-activated object by using a TcpChannel and a BinaryFormatter. You want to deploy the Scheduler object to a computer named Computer1 so that client applications can begin to use it.  You copy TaskScheduler.dll, SchedulerServer.exe, and SchedulerServer.exe.config to a directory on Computer1.  What should you do next? A: Install TaskScheduler.dll in the global assembly cache.B: Use the Assembly Registration tool (Regasm.exe) on Computer1 to register SchedulerServer.exe.C: Use the Assembly Registration tool (Regasm.exe) on Computer1 to register TaskScheduler.dll.D: Configure Computer1 to execute SchedulerServer.exe each time Computer1 is restarted. Then manually execute SchedulerServer.exe on Computer1.Correct Answers:  D 8.You are creating a .NET Remoting object. You want to add code to the object to log error messages and warning messages. You want the log messages written to both a log file and to the Windows application log. Which code segment should you use? A: EventLog eventLog = new EventLog("remobj");FileStream fileLog = File.Create("remobj.log");Trace.WriteLine(eventLog, "sample message");Trace.WriteLine(fileLog, "sample message");B: EventLog eventLog = new EventLog("remobj");FileStream fileLog = File.Create("remobj.log");Trace.Write(eventLog);Trace.Write(fileLog);Trace.WriteLine("sample message");C: Trace.Listeners.Add(new EventLogTraceListener("remobj"));Trace.Listeners.Add(new TextFileTraceListener("remobj.log"));Trace.WriteLine("sample message");D: Trace.Listeners.Add(new EventLogTraceListener());Trace.Listeners.Add(new TextFileTraceListener("remobj.log"));Trace.WriteLine("sample message");Correct Answers:  C 9.You have a SqlDataReader object named productsDataReader. The productsDataReader object contains three columns in the following order:    ProductID as Integer    ProductName as nvarchar(40)    UnitsInStock as Integer  You want to use productsDataReader to create an inventory management report. You define the following three variables:     int myProductID;    string myProductName;    int myUnits;  You need to ensure that the report runs as quickly as possible.  Which code segment should you use? A: myProductID = (int) productsDataReader[1];myProductName = (string) productsDataReader[2];myUnits = (int) productsDataReader[3];B: myProductID = (int) productsDataReader[0];myProductName = (string) productsDataReader[1];myUnits = (int) productsDataReader[2];C: myProductID = (int) productsDataReader["ProductID"];myProductName = (string)productsDataReader["ProductName"];myUnits = (int) productsDataReader["UnitsInStock"];D: myProductID = (int)productsDataReader.GetOrdinal("ProductID");myProductName = (string)productsDataReader.GetOrdinal("ProductName");myUnits = (int)productsDataReader.GetOrdinal("UnitsInStock");Correct Answers:  B 10.You create a .NET Remoting object named AdminService, which is hosted in Internet Information Services (IIS). The object uses an HttpChannel and a BinaryFormatter.  AdminService is in an assembly named AdminService.dll. The URL for AdminService is http://LocalHost/AdminService/AS.rem.  You write a test console application named Tester.exe to test the AdminService interface. Tester.exe includes the following code segment:         public class Tester {            public static void Main(string[] Args) {                  AdminService service = new AdminService();                 // Code to exercise the service object.        }     }  You write a configuration file for Tester.exe. The configuration file is named Tester.exe.config and includes the following code segment:10.You run Tester.exe. The application immediately throws a System.NullReferenceException. The exception includes the following message: "Object reference not set to an instance of an object." You need to resolve this exception. What should you do? A: To the application element of the Tester.exe.config file, add the following code segment:B: Replace the use of the AdminService constructor in Tester.exe with the following code segment:AdminService service =(AdminService)Activator.CreateInstance(typeof(AdminService));C: At the beginning of the Main method in Tester.exe, add the following line of code:RemotingConfiguration.Configure("Tester.exe.config");D: Rename the configuration file from Tester.exe.config to Tester.config.Correct Answers:  C


责任编辑:admin 文章作者:
 
最新热点 最新推荐 相关文章
·Cisco试题库:ccna最新真题(下)(1)-Cisco认
·CCNA,CCNP考试界面
·微软MCITP 70-431 认证考试考题
·CISCO出版认证书籍详细介绍
·OracleDBA创建数据库试题精选-Oracle认证考
·Cisco试题库:ccna最新真题(下)(3)-Cisco认
·CCNP学习考试心得
·OracleDBA存储管理试题选-Oracle认证考试
·MCSE--微软认证系统工程师-(一)-Microso
·Cisco试题库:ccna最新真题(下)(4)-Cisco认
·主流CCNA实验模拟器介绍(2004版)
·CCNA教程之七层模型详解
·安装配置——路由器的硬件连接一(组图) 

·EMC e20-095 认证考试题
·EMC e20-580 认证试题
·EMC E20-535认证考试试题
·EMC E20-860 认证考试试题
·EMC E20-870 认证考题
·Nortel 920-139 考试题库
·Nortel 920-140 考试题库
·Nortel 920-158 考试题库
·Nortel 920-161 考试题库
·Nortel 920-162 考试题库
·思科 646-561
·思科 642-564
·思科 642-567

中搜索
微软MCSD.NET 70-320 TestInside认证考试题库
中搜索
微软MCSD.NET 70-320 TestInside认证考试题库
中搜索
微软MCSD.NET 70-320 TestInside认证考试题库
中搜索
微软MCSD.NET 70-320 TestInside认证考试题库
中搜索
微软MCSD.NET 70-320 TestInside认证考试题库
中搜索
微软MCSD.NET 70-320 TestInside认证考试题库
其他认证试题
SUN认证考试  SUN认证资讯
HP认证考试
ibm认证考试
Oracle认证考试  Oracle经验交流  Oracle综合辅导  Oracle试题库  应用技术辅导  报考指南  Oracle资讯
思科认证考试  Cisco认证报考指南  Cisco认证心得体会  思科认证试题  Cisco认证综合指导  思科CCIE认证考试  思科CCNP认证考试  思科CCNA认证考试  思科认证考试动态
微软认证考试  微软认证试题  microsoft认证模拟试题  microsoft认证历年真题  Microsoft认证心得技巧  Microsoft综合辅导  微软认证考试辅导  微软认证MCSD指导  微软认证MCAD指导  微软认证MCT指导  微软认证MCDBA指导  微软认证MCSA指导  微软认证MCDST指导  微软认证MCP指导  微软认证MCSE指导  Microsoft认证报考指南  微软认证考试动态
设为首页 关于我们 广告服务 联系我们 网站地图 加入收藏 网站声明 友情链接 考试认证论坛 意见反馈
Copyright©2007-2008 www.mbsexam.com All Rights Reserved.