作业帮 > 微软认证(MCSE) > 教育资讯

2013微软认证考试练习题及答案(14)[1]

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/09 13:19:04 微软认证(MCSE)
2013微软认证考试练习题及答案(14)[1]
2013微软认证考试练习题及答案(14)[1]微软认证(MCSE)
【网络综合 - 微软认证(MCSE)试题】
无忧考网为大家收集整理了《2013微软认证考试练习题及答案(14)》供大家参考,希望对大家有所帮助!!!

第 66 题
你正在改变文件 MyData.xml 的安全设置。你需要保留已经继承的访问规则,但是不会通过继
承被父对象修改。你应该怎么做?
A. FileSecurity security = new FileSecurity("mydata.xml",
AccessControlSections.All);security.SetAccessRuleProtection(true,
true);File.SetAccessControl("mydata.xml", security);
B. FileSecurity security = new FileSecurity();security.SetAccessRuleProtection(true,
true);File.SetAccessControl("mydata.xml", security);
C. FileSecurity security =
File.GetAccessControl("mydata.xml");security.SetAccessRuleProtection(true, true);
D. FileSecurity security =
File.GetAccessControl("mydata.xml");security.SetAuditRuleProtection(true,
true);File.SetAccessControl("mydata.xml", security);
答案: A

第 67 题
你正在创建一个类,它用于去比较指定格式的字符串。为此,你需要实现 IComparable
接口。你应该使用下面那个代码段?
A. public class Person : IComparable{
public int CompareTo(string other){
}}
B. public class Person : IComparable{
public int CompareTo(object other){
}}
C. public class Person : IComparable{
public bool CompareTo(string other){
}}
D. public class Person : IComparable{
public bool CompareTo(object other){
}}
答案: A

第 68 题
你正在开发一个去解密数据的方法。已知数据是使用 Triple DES 算法进行加密的。你的方法
接收如下参数:将被解密的字节数组 cipherMessage,密钥 key,始化向量 iv。
你需要使用TripleDES类去解密数据,并且把结果放入一个字符串中。你应该使用那段代码?
A. TripleDES des = new TripleDESCryptoServiceProvider();des.BlockSize =
cipherMessage.Length;ICryptoTransform crypto = des.CreateDecryptor(key,
iv);MemoryStream cipherStream = new MemoryStream(cipherMessage);CryptoStream
cryptoStream =
new CryptoStream(
cipherStream, crypto, CryptoStreamMode.Read); string message;message = new
StreamReader(cryptoStream).ReadToEnd();
B. TripleDES des = new TripleDESCryptoServiceProvider();des.FeedbackSize =
cipherMessage.Length;ICryptoTransform crypto微软认证(MCSE)