MCAD Skills to MCPD Wdws Dvlpr by Using MS.NET Frmwk:70-552C++
科目编号:70-552C++
科目名称:MCAD Skills to MCPD Wdws Dvlpr by Using MS.NET Frmwk
描述:
70-552C++ 考试是 Microsoft 公司的 MCAD Skills to MCPD Wdws Dvlpr by Using MS.NET Frmwk 认证考试官方代号,kaoccna 的 70-552C++ 权威考试题库软件是 Microsoft 认证厂商的授权产品,kaoccna 绝对保证顺利通过,否则承诺全额退款!
MCAD Skills to MCPD Wdws Dvlpr by Using MS.NET Frmwk 认证作为全球IT领域专家 Microsoft 热门认证之一,是许多大中 IT 企业选择人才标准的必备条件。 如果你正在准备 70-552C++ 考试,为 Microsoft MCAD Skills to MCPD Wdws Dvlpr by Using MS.NET Frmwk认证做最后冲刺,又苦于没有绝对权威的考试真题模拟
mcsepass 实行"一次不过全额退款"承诺。如果您购买我们 70-552C++ 的考题,只要不是首次通过,凭盖有 PROMETRIC 或 VUE 考试中心钢印的考试成绩单,我们将退还您购买 70-552C++ 考题大师的全部费用,绝对保证您的利益不受到任何的损失。
- 科目: 70-552C++
- 原价:
¥ 364.00 - 现价: ¥ 358.00
kaoccna 的优势
70-552C++ 试题的质量和价值
mcsepass 模拟测试题具有最高的专业技术含量,只供具有相关专业知识的专家和学者学习和研究之用。
100% 保证您通过 70-552C++ 的考试
如果你使用 mcsepass 模拟测试,我们将保证你的第一次参加考试即取得成功,否则,我们将全额退款!
试用后再购买
mcsepass 提供每种产品免费测试。在您决定购买之前,请检测联接,可能存在的问题及试题质量和适用性。
kaoccna认证考试题库网专业提供 Microsoft 70-552C++ 最新题库下载,完全覆盖 mcsepass 考试原题。
部分考题展示
Exam : Microsoft 70-552(C++)
Title : UPGRADE:MCAD Skills to MCPD Wdws Dvlpr by Using MS .NET Fmwk
1. You are developing a server application that will transmit sensitive information on a network. You create an X509Certificate object named certificate and a TcpClient object named client. You need to create an SslStream to communicate by using the Transport Layer Security 1.0 protocol. Which code segment should you use?
A. SslStream^ ssl = gcnew SslStream(Client->GetStream());ssl->AuthenticateAsServer(certificate, false, SslProtocols::None, true);
B. SslStream ^ssl = gcnew SslStream(Client->GetStream());ssl->AuthenticateAsServer(certificate, false, SslProtocols::Ssl3, true);
C. SslStream ^ssl = gcnew SslStream(Client->GetStream());ssl->AuthenticateAsServer(certificate, false, SslProtocols::Ssl2, true);
D. SslStream ^ssl = gcnew SslStream(Client->GetStream());ssl->AuthenticateAsServer(certificate, false, SslProtocols::Tls, true);
Answer: D
2. You are developing a method to call a COM component. You need to use declarative security to explicitly request the runtime to perform a full stack walk. You must ensure that all callers have the required level of trust for COM interop before the callers execute your method. Which attribute should you place on the method?
A. [SecurityPermission( SecurityAction::Demand, Flags=SecurityPermissionFlag::UnmanagedCode)]
B. [SecurityPermission( SecurityAction::LinkDemand, Flags=SecurityPermissionFlag::UnmanagedCode)]
C. [SecurityPermission( SecurityAction::Assert, Flags = SecurityPermissionFlag::UnmanagedCode)]
D. [SecurityPermission( SecurityAction::Deny, Flags = SecurityPermissionFlag::UnmanagedCode)]
Answer: A
3. You create a DirectorySecurity object for the working directory. You need to identify the user accounts and groups that have read and write permissions. Which method should you use on the DirectorySecurity object?
A. the GetAuditRules method
B. the GetAccessRules method
C. the AccessRuleFactory method
D. the AuditRuleFactory method
Answer: B
4. You are changing the security settings of a file named MyData.xml. You need to preserve the existing inherited access rules. You also need to prevent the access rules from inheriting changes in the future. Which code segment should you use?
A. FileSecurity^ security = gcnew FileSecurity("mydata.xml",AccessControlSections::All);security->SetAccessRuleProtection(true, true);File::SetAccessControl("mydata.xml", security);
B. FileSecurity^ security = gcnew 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);
Answer: A
5. You are developing an application that will deploy by using ClickOnce. You need to test if the application executes properly. You need to write a method that returns the object, which prompts the user to install a ClickOnce application. Which code segment should you use?
A. return ApplicationSecurityManager::ApplicationTrustManager;
B. return AppDomain::CurrentDomain::ApplicationTrust;
C. return gcnew HostSecurityManager();
D. return SecurityManager::PolicyHierarchy();
Answer: A
6. You need to write a code segment that will add a string named strConn to the connection string section of the application configuration file. Which code segment should you use?
A. System::Configuration::Configuration^ myConfig = ConfigurationManager::OpenExeConfiguration( ConfigurationUserLevel::None);myConfig->ConnectionStrings->ConnectionStrings->Add( gcnew ConnectionStringSettings("ConnStr1", strConn));myConfig->Save();
B. System::Configuration::Configuration^ myConfig = ConfigurationManager::OpenExeConfiguration( ConfigurationUserLevel::None);myConfig->ConnectionStrings->ConnectionStrings->Add( gcnew ConnectionStringSettings("ConnStr1", strConn));ConfigurationManager::RefreshSection("ConnectionStrings");
C. ConfigurationManager::ConnectionStrings::Add( gcnew ConnectionStringSettings("ConnStr1", strConn));ConfigurationManager::RefreshSection("ConnectionStrings");
D. ConfigurationManager::ConnectionStrings::Add( gcnew ConnectionStringSettings("ConnStr1", strConn));System::Configuration::Configuration^ myConfig = ConfigurationManager::OpenExeConfiguration( ConfigurationUserLevel::None);myConfig->Save();
Answer: A
7. You are writing code for user authentication and authorization. The username, password, and roles are stored in your application data store. You need to establish a user security context that will be used for authorization checks such as IsInRole. You write the following code segment to authorize the user.
if (!TestPassword(userName, password))
throw new Exception("could not authenticate user");
String[] userRolesArray = LookupUserRoles(userName);
You need to complete this code so that it establishes the user security context. Which code segment should you use?
A. GenericIdentity ident = new GenericIdentity(userName);GenericPrincipal currentUser = new GenericPrincipal(ident, userRolesArray);Thread.CurrentPrincipal = currentUser;
B. WindowsIdentity ident = new WindowsIdentity(userName);WindowsPrincipal currentUser = new WindowsPrincipal(ident);Thread.CurrentPrincipal = currentUser;
C. NTAccount userNTName = new NTAccount(userName);GenericIdentity ident = new GenericIdentity(userNTName.Value);GenericPrincipal currentUser= new GenericPrincipal(ident, userRolesArray);Thread.CurrentPrincipal = currentUser;
D. IntPtr token = IntPtr.Zero;token = LogonUserUsingInterop(userName, encryptedPassword);WindowsImpersonationContext ctx = WindowsIdentity.Impersonate(token);
Answer: A
8. You are developing a method to hash data with the Secure Hash Algorithm. The data is passed to your method as a byte array named message. You need to compute the hash of the incoming parameter by using SHA1. You also need to place the result into a byte array named hash. Which code segment should you use?
A. SHA1 ^sha = gcnew SHA1CryptoServiceProvider();array<Byte>^hash = nullptr;sha->TransformBlock(message, 0, message->Length, hash, 0);
B. SHA1 ^sha = gcnew SHA1CryptoServiceProvider();array<Byte>^hash = BitConverter::GetBytes(sha->GetHashCode());
C. SHA1 ^sha = gcnew SHA1CryptoServiceProvider();array<Byte>^hash = sha->ComputeHash(message);
D. SHA1 ^sha = gcnew SHA1CryptoServiceProvider();sha->GetHashCode();array<Byte>^hash = sha->Hash;
Answer: C
9. You create an application to send a message by e-mail. An SMTP server is available on the local subnet. The SMTP server is named smtp.contoso.com. To test the application, you use a source address, me@contoso.com, and a target address, you@contoso.com. You need to transmit the e-mail message. Which code segment should you use?
A. MailAddress addrFrom("me@contoso.com", "Me");MailAddress addrTo("you@contoso.com", "You");MailMessage message(%addrFrom, %addrTo);message.Subject = "Greetings!";message.Body = "Test";message.Dispose();
B. String^ strSmtpClient = "smtp.contoso.com";String^ strFrom = "me@contoso.com";String^ strTo = "you@contoso.com";String^ strSubject = "Greetings!";String^ strBody = "Test";MailMessage msg(strFrom, strTo, strSubject, strSmtpClient);
C. MailAddress addrFrom("me@contoso.com");MailAddress addrTo("you@contoso.com");MailMessage message(%addrFrom, %addrTo);message.Subject = "Greetings!";message.Body = "Test";SmtpClient client("smtp.contoso.com");client.Send(%message);
D. MailAddress^ addrFrom = gcnew MailAddress("me@contoso.com", "Me");MailAddress^ addrTo = gcnew MailAddress("you@contoso.com", "You");MailMessage^ message = gcnew MailMessage(addrFrom, addrTo);message->Subject = "Greetings!";message->Body = "Test";SocketInformation info;Socket^ client = gcnew Socket(info);System::Text::ASCIIEncoding^ enc = gcnew System::Text::ASCIIEncoding();array<unsigned char>^ msgBytes = enc->GetBytes(message->ToString());client->Send(msgBytes);
Answer: C
10. You are developing a method to hash data for later verification by using the MD5 algorithm. The data is passed to your method as a byte array named message. You need to compute the hash of the incoming parameter by using MD5. You also need to place the result into a byte array. Which code segment should you use?
A. HashAlgorithm ^algo = HashAlgorithm::Create("MD5");hash = algo->ComputeHash(message);
B. HashAlgorithm ^algo = HashAlgorithm::Create("MD5");hash = BitConverter::GetBytes(algo->GetHashCode());
C. HashAlgorithm ^algo;algo = HashAlgorithm::Create(message->ToString());hash = algo->Hash;
D. HashAlgorithm ^algo = HashAlgorithm::Create("MD5");hash = nullptr;algo->TransformBlock(message, 0, message->Length, hash, 0);
Answer: A
11. You are developing an auditing application to display the trusted ClickOnce applications that are installed on a computer. You need the auditing application to display the origin of each trusted application. Which code segment should you use?
A. ApplicationTrustCollection^ trusts;trusts= ApplicationSecurityManager::UserApplicationTrusts;for(int i=0;i<trusts->Count;i++){ApplicationTrust^ trust = trusts[i];System::Console::WriteLine(trust->ToString());}
B. ApplicationTrustCollection^ trusts;trusts = ApplicationSecurityManager::UserApplicationTrusts;for(int i=0;i<trusts->Count;i++){ApplicationTrust^ trust = trusts[i];System::Console::WriteLine(trust->ExtraInfo->ToString());}
C. ApplicationTrustCollection^ trusts;trusts = ApplicationSecurityManager::UserApplicationTrusts;for(int i=0;i<trusts->Count;i++){ApplicationTrust^ trust = trusts[i];System::Console::WriteLine(trust->ApplicationIdentity->FullName);}
D. ApplicationTrustCollection^ trusts;trusts = ApplicationSecurityManager::UserApplicationTrusts;for(int i=0;i<trusts->Count;i++){Object^ trust = trusts[i];System::Console::WriteLine(trust->ToString());}
Answer: C
12. You are using the Microsoft Visual Studio 2005 IDE to examine the output of a method that returns a string. You assign the output of the method to a string variable named fName.
You need to write a code segment that prints the following on a single line
The message: "Test Failed: "
The value of fName if the value of fName does not equal "John"
You also need to ensure that the code segment simultaneously facilitates uninterrupted execution of the application. Which code segment should you use?
A. Debug::Assert(fName == "John", "Test Failed: ", fName);
B. Debug::WriteLineIf(fName != "John", fName, "Test Failed");
C. if (fName != "John") { Debug::Print("Test Failed: "); Debug::Print(fName);}
D. if (fName != "John") { Debug::WriteLine("Test Failed: "); Debug::WriteLine(fName);}
Answer: B
13. You are developing a utility screen for a new client application. The utility screen displays a thermometer that conveys the current status of processes being carried out by the application. You need to draw a rectangle on the screen to serve as the background of the thermometer as shown in the exhibit. The rectangle must be filled with gradient shading. (Click the Exhibit button.) Which code segment should you choose?
A. Rectangle^ rectangle = gcnew Rectangle(10, 10, 450, 25); LinearGradientBrush^ rectangleBrush = gcnew LinearGradientBrush(rectangle, Color::AliceBlue, Color::CornflowerBlue, LinearGradientMode::ForwardDiagonal); Pen^ rectanglePen = gcnew Pen(rectangleBrush); Graphics^ g = this->CreateGraphics(); g->DrawRectangle(rectanglePen, rectangle);
B. Rectangle^ rectangle = gcnew Rectangle(10, 10, 450, 25); LinearGradientBrush^ rectangleBrush = gcnew LinearGradientBrush(rectangle, Color::AliceBlue, Color::CornflowerBlue, LinearGradientMode::ForwardDiagonal); Pen^ rectanglePen = gcnew Pen(rectangleBrush); Graphics^ g = this->CreateGraphics(); g->FillRectangle(rectangleBrush, rectangle);
C. RectangleF^ rectangle = gcnew RectangleF(10f, 10f, 450f, 25f); array<Point^>^ points = gcnew array<Point^>^ {gcnew Point(0, 0), gcnew Point(110, 145)}; LinearGradientBrush^ rectangleBrush = gcnew LinearGradientBrush(rectangle, Color::AliceBlue, Color::CornflowerBlue, LinearGradientMode::ForwardDiagonal); Pen^ rectanglePen = gcnew Pen(rectangleBrush); Graphics^ g = this->CreateGraphics(); g->DrawPolygon(rectanglePen, points);
D. RectangleF^ rectangle = gcnew RectangleF(10f, 10f, 450f, 25f); SolidBrush^ rectangleBrush = gcnew SolidBrush(Color::AliceBlue); Pen^ rectanglePen = gcnew Pen(rectangleBrush); Graphics^ g = this->CreateGraphics(); g->DrawRectangle(rectangleBrush, rectangle);
Answer: B
14. You are creating an assembly named Assembly1. Assembly1 contains a public method. The global cache contains a second assembly named Assembly2. You must ensure that the public method is only called from Assembly2. Which permission class should you use?
A. GacIdentityPermission
B. PublisherIdentityPermission
C. DataProtectionPermission
D. StrongNameIdentityPermission
Answer: D