2012年微软认证考试备考模拟试题10
09-05
0



微软认证考试网整理了关于微软考试复习资料,希望对您复习考试有所帮助,以下是关于2012年微软认证考试备考模拟试题,祝愿大家取得好成绩。


 
27.你创建了一个发送 e-mail 的应用。一个名称为 smtp.Company.com 的 SMTP 服务器在本地子 
网 是 可 用 的 。 为 了 测 试 应 用 , 你 使 用 源 地 址 为   me@Company.com , 目 标 地 址 为 
you@Company.com。你应该使用下面那个代码段去发送 e-mail? 
 
A. Dim MailFrom As New MailAddress("me@Company.com", "Me") 
Dim MailTo As New MailAddress("you@Company.com", "You") 
Dim Message As New MailMessage(MailFrom, MailTo)Message.Subject = 
"Greetings"Message.Body = "Test"Message.Dispose() 
B. Dim SMTPClient As String = "smtp.Company.com" 
Dim MailFrom As String = me@Company.com 
Dim MailTo As String = you@Company.com 
Dim Subject As String = "Greetings" 
Dim Body As String = "Test"Dim Message As New MailMessage(MailFrom, MailTo, 
Subject, SMTPClient) 
C. Dim MailFrom As New MailAddress("me@Company.com", "Me") 
Dim MailTo As New MailAddress("you@Company.com", "You") 
Dim Message As New MailMessage(MailFrom, MailTo)Message.Subject = 
"Greetings"Message.Body = "Test" 
Dim objClient As New SmtpClient("smtp.Company.com")objClient.Send(Message) 
D. Dim MailFrom As New MailAddress("me@Company.com", "Me") 
Dim MailTo As New MailAddress("you@Company.com", "You") 
Dim Message As New MailMessage(MailFrom, MailTo)Message.Subject = 
"Greetings"Message.Body = "Test" 
Dim Info As New SocketInformationDim Client As New Socket(Info) 
Dim Enc As New ASCIIEncodingDim Bytes() As Byte = 
Enc.GetBytes(Message.ToString)Client.Send(Bytes) 
答案: C
 
28.你需要写一个代码段,从一个流变量  stream1  截取开始的  80  个字节到一个新的字节数组 
byteArray 中。你同时也需要保证代码段把截取的字节数保存到一个整型变量 bytesTransferred 
中,你应该使用下面那个代码段? 
A. bytesTransferred = stream1.Read(byteArray, 0, 80); 
B. for (int i = 0; i < 80; i++) { 
stream1.WriteByte(byteArray[i]); 
bytesTransferred = i; 
if (!stream1.CanWrite) { 
break; 
}} 
C. while (bytesTransferred < 80) { 
stream1.Seek(1, SeekOrigin.Current); 
byteArray[bytesTransferred++] = 
Convert.ToByte(stream1.ReadByte());} 
D. stream1.Write(byteArray, 0, 80);bytesTransferred = byteArray.Length; 
答案: A 
 
29.你正在创建一个存储不同地域的客户信息的应用。你为这个应用开发了一个内部的测试版本。 
你需要收集加拿大客户的区域信息,你应该使用那个代码段? 
A.   foreach (CultureInfo culture in CultureInfo.GetCultures(CultureTypes.SpecificCultures)) 
{ //Output the region information...} 
B. CultureInfo cultureInfo = new CultureInfo("CA"); // Output the region information¼ 
C. RegionInfo regionInfo = new RegionInfo("CA"); // Output the region information¼ 
D. RegionInfo regionInfo = new RegionInfo("");if(regionInfo.Name == "CA") { 
// Output the region information...} 

相关内容

热门资讯

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