2012年微软认证考试备考模拟试题3
09-04
0


7.你的应用使用两个名为 threadOne 和 threadTwo 的线程。你需要修改代码使其只有 threadTwo 
执行完成才开始执行 threadOne。你应该如何做? 
A.  设置threadOne运行在低优先级。 
B.  设置threadTwo运行在高优先级。 
C.  使用WaitCallback  代理去同步线程。 
D.  调用threadOne  的Sleep方法。 
答案: C 

  
8.你是公司 A 的一个开发人员。你创建了一个名为 Company1 的程序集。Company1 包含了一 
个 public 方法。全局程序集中包含了另一个名为 Company2 的程序集。你必须保证,public 方 
法只能够被 Company2 调用。你需要使用下面哪个权限类? 
A. GacIdentityPermission 
B. PublisherIdentityPermission 
C. DataProtectionPermission 
D. StrongNameIdentityPermission  
答案: D 

  
9.你创建了一个发送 e-mail 的应用。一个名称为 smtp.Company.com 的 SMTP 服务器在本地子 
网 是 可 用 的 。 为 了 测 试 应 用 , 你 使 用 源 地 址 为   me@Company.com , 目 标 地 址 为 
you@Company.com。你应该使用下面那个代码段去发送 e-mail? 
A. MailAddress addrFrom = 
new MailAddress("me@Company.com", "Me");MailAddress addrTo = 
new MailAddress("you@Company.com", "You");MailMessage message = new 
MailMessage(addrFrom, addrTo);message.Subject = "Greetings!";message.Body = 
"Test";message.Dispose(); 
B. string strSmtpClient = "mstp.Company.com";string strFrom = "me@Company.com"; 
String    strTo= "you@Company.com";string strSubject = "Greetings!"; 
string strBody =      "Test";MailMessage 
msg = new MailMessage(strFrom, strTo, strSubject, strSmtpClient); 
C. MailAddress addrFrom = new MailAddress("me@Company.com");MailAddress addrTo = 
new 
MailAddress("you@Company.com");MailMessage message = new 
MailMessage(addrFrom, 
addrTo);message.Subject = "Greetings!";message.Body = "Test";SmtpClient client = new 
SmtpClient("smtp.Company.com");client.Send(message); 
D. MailAddress addrFrom = 
new MailAddress("me@Company.com", "Me");MailAddress addrTo = new 
MailAddress("you@Company.com", "You");MailMessage message = new 
MailMessage(addrFrom, addrTo);message.Subject = "Greetings!";message.Body = 
"Test";SocketInformation info = new SocketInformation();Socket client = new 
Socket(info);System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();byte[] 
msgBytes = enc.GetBytes(message.ToString());client.Send(msgBytes);  
答案: C 

相关内容

热门资讯

2014年微软认证:微软认证V... 2014年微软认证:微软认证Version:V2.38考试必备经典试题8
2014年微软认证:微软认证V... 2014年微软认证:微软认证Version:V2.38考试必备经典试题6
微软认证考试基于.NET的We... 微软认证考试基于.NET的Web应用程序开发模拟试题四
2014年微软认证:微软认证V... 2014年微软认证:微软认证Version:V2.38考试必备经典试题4
2014年微软认证:微软认证V... 2014年微软认证:微软认证Version:V2.38考试必备经典试题5
2014年微软认证:微软认证V... 2014年微软认证:微软认证Version:V2.38考试必备经典试题10
2014年微软认证:微软认证V... 2014年微软认证:微软认证Version:V2.38考试经典试题2
2014年微软认证:微软认证V... 2014年微软认证:微软认证Version:V2.38考试经典试题7
2012年微软认证考试备考模拟... 2012年微软认证考试备考模拟试题5
2014年微软认证:微软认证V... 2014年微软认证:微软认证Version:V2.38考试经典试题1