IT认证考试网

设为首页

收藏本站

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

微软MCSD.NET 70-306考题(1-10)

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

来源:   点击数:     录入时间:07-08-31 10:50:45

1.You use Visual Studio .NET to create a Windows-based data management application named MyApp. You implement the following code segment:   Dim oSwitch As New _        TraceSwitch("MySwitch", "My TraceSwitch")  Dim oWriter As New _         IO.StreamWriter(IO.File.Open("c:\MyApp.txt", _         IO.FileMode.Append))  Dim oListener As New _         TextWriterTraceListener(oWriter)   Trace.Listeners.Add(oListener)   Try      CustomerUpdate()  Catch oEx As Exception      Trace.WriteLineIf(oSwitch.TraceError, _               "Error: " & oEx.Message)  Finally  T    Trace.Listeners.Clear()      oWriter.Close()      oWriter = Nothing  End Try  You compile a debug version of the application and deploy it to a user's computer. The user reports errors, which are generated within the CustomerUpdate procedure.  You decide to enable logging of the error messages generated by CustomerUpdate. You want to use the minimum amount of administrative effort.  What should you do? A: Start the application with the following command line: /TRACE MySwitch 1.B: Start the application with the following command line: /d:TRACE=True.C: Start the application with the following command line: /XML <switch="MySwitch" value="1">D: Create an environment variable on the user's computer. Name the variable MySwitch and assign it a value of 1.E: Edit your application's .config file to set the value of MySwitch to 1.Correct Answers:  E 2.You develop a Windows-based application named CustOrders. You implement the Trace object within your application code. You will use this object to record application information, such as errors and performance data, in a log file.  You must have the ability to enable and disable Trace logging. This functionality must involve the minimum amount of administrative effort.  What should you do? A: Create a Boolean constant in your application named  TraceLogging and set it to False . Each time your code uses Trace logging, use a If Then statement to evaluate your #TraceLogging constant.B: On each computer that will host your application, create an environment variable named CustOrders.Trace. Set the environment variable to True when you want to enable Trace logging. Set it to False when you want to disable Trace logging.C: On each computer that will host your application, edit the shortcut used to start your application. Add /d:TRACE=True to the Target property.D: Use the TraceSwitch class within your code. Each time your code uses Trace logging, consult the TraceSwitch level to verify whether to log information. Change the TraceSwitch level by editing your application's .config file.Correct Answers:  D 3.You use Visual Studio .NET to develop a Windows-based application named PatTrac. It uses the security class libraries of the .NET Framework to implement security. PatTrac will run within the context of a Windows 2000 domain named MedicalOffice. Calls to a remote Windows 2000 domain named Hospital will occur during the execution of PatTrac.  You want PatTrac to log on to the Hospital domain by using a generic user account. What should you do? A: Create a new instance of the WindowsImpersonationContext class by calling the Impersonate method of the GenericIdentity object and passing the token of the user whom you want to impersonate.B: Create a new instance of the WindowsImpersonationContext class by calling the Impersonate method of the WindowsIdentity object and passing the token of the user whom you want to impersonate.C: Create a new instance of the ZoneIdentityPermission class by calling the Impersonate method of the GenericPrincipal object and passing the token of the user whom you want to impersonate.D: Create a new instance of the ZoneIdentityPermission class by calling the Impersonate method of the WindowsPrincipal object and passing the token of the user whom you want to impersonate.Correct Answers:  B 4.Another developer in your company uses Visual Studio .NET to create a component named MyComponent. You deploy MyComponent to a server. When you execute MyComponent, you receive the following error message: "System.Security.Policy.PolicyException: Failed to acquire required permissions." As quickly as possible, you need to discover which permissions are required by MyComponent. What should you do? A: Request the source code from the developer who created MyComponent. Examine the source code to find the required permissions.B: Run the Microsoft CLR Debugger (DbgCLR.exe) on the server to view the permissions requested by the application at run time.C: Run the Runtime Debugger (Cordbg.exe) on the server to view the permissions requested by the application at run time.D: Run the Permissions View tool (Permview.exe) on the server to view the permissions required by MyComponent.E: Run the MSIL Disassembler (Ildasm.exe) on the server to view permission requests by MyComponent that were denied.Correct Answers:  D 5.You develop a Windows-based application that will retrieve employee vacation data and display it in a DataGrid control. The data is managed locally in a DataSet object named employeeDataSet. You need to write code that will enable users to sort the data by department. Which code segment should you use? A: Dim dvDept As New DataView()dvDept.Table = employeeDataSet.Tables(0)dvDept.Sort = "ASC"DataGrid1.DataSource = dvDeptB: Dim dvDept As New DataView()dvDept.Table = employeeDataSet.Tables(0)

本新闻共3页,当前在第1页  1  2  3  


责任编辑: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-306考题(1-10)
中搜索
微软MCSD.NET 70-306考题(1-10)
中搜索
微软MCSD.NET 70-306考题(1-10)
中搜索
微软MCSD.NET 70-306考题(1-10)
中搜索
微软MCSD.NET 70-306考题(1-10)
中搜索
微软MCSD.NET 70-306考题(1-10)
其他认证试题
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.