当前位置:MCPD(70-536)题库

问题:

[单选] 您要写下面的名为 CustomException的自定义异常类public class CustomException : ApplicationException { public static int COR_E_ARGUMENT = unchecked((int)0x80070057); public CustomException(string msg) : base(msg) { HResult = COR_E_ARGUMENT; }}您需要编写一段代码,这段代码要使用ustomException 类,并且要迅速返回控制权给COM 调用方法。 您应该使用哪个代码?()

A . return Marshal.GetExceptionForHR(CustomException.COR_E_ARGUMENT);
B . return CustomException.COR_E_ARGUMENT;
C . Marshal.ThrowExceptionForHR(CustomException.COR_E_ARGUMENT);
D . throw new CustomException(“Argument is out of bounds”)

在动态测试过程中,测试人员利用程序内部的逻辑结构及有关信息,设计和选择测试用例,对程序所有逻辑路径及过程进行测试的方法属于()。 白盒法。 黑盒法。 条件覆盖法。 经验推测法。 以下哪种方法不属于肯定性训练() 请求。 系统脱敏。 拒绝。 公开表达自己的真实情感。 Your network contains a Network Policy Server (NPS) named Server1. Server1 is configured to use SQL logging.You add a second NPS server named Server2.You need to ensure that Server2 has the same RADIUS authentication and logging settings as Server1.You export the NPS settings from Server1, and then import the settings to Server2.What should you do next on Server2?() Create a new ODBC data source.。 Run netsh.exe nps reset config.。 Manually configure the SQL logging settings.。 Restart the Network Policy Server (NPS) role service.。 You work in a company which uses SQL Server 2008. You are the administrator of the company database. Now you are in charge of a SQL Server 2008 instance which uses mixed authentication mode. The instance runs on a computer which has Windows Server 2003 installed. You must make sure that the SQL Server 2008 authenticated logins follow the same password complexity rules that are enforced by Windows Server 2003. Besides this, you must make sure that the password complexity rules continue to be enforced.  So what action should you perform to achieve this goal?()  You should create an SQL Server Agent job. If a rule violation is detected, the job runs periodically to raise an alert 。 You should modify all logins by using the ALTER LOGIN ... HASHED statement. 。 You should modify all logins by using the ALTER LOGIN ... CHECK_POLICY = ON statement to. 。 You should modify all logins by using the ALTER LOGIN ... CHECK_EXPIRATION = ON statement. 。 You should create a policy by using Policy-Based Management. The policy prevents any violation of these rule。 ()是我国新石器时代制陶工艺中最成功的装饰手法 彩绘。 刻画。 堆贴。 拍印。 您要写下面的名为 CustomException的自定义异常类public class CustomException : ApplicationException { public static int COR_E_ARGUMENT = unchecked((int)0x80070057); public CustomException(string msg) : base(msg) { HResult = COR_E_ARGUMENT; }}您需要编写一段代码,这段代码要使用ustomException 类,并且要迅速返回控制权给COM 调用方法。 您应该使用哪个代码?()
参考答案:

  参考解析

本题暂无解析

在线 客服