70-552C++ MCPD Braindump
ExamSoon 70-552C++ Exams
Microsoft MCAD Skills to MCPD Wdws Dvlpr by Using MS.NET Frmwk
O rder : 70-552C++ Exam
Practice Exam: 70-552C++
Exam Number/Code: 70-552C++
Exam Name: MCAD Sk ills to MCPD Wdws Dvlpr by Using MS.NET Frmwk
Questions and Answers: 87 Q&As
Free 70-552C++ Braindumps
Exam : Microsoft 70-552(C++)
Title : UPGRADE:MCAD Skills to MCPD Wdws Dvlpr by Using MS .NET Fmwk
1. 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
2. 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
3. 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 âlgo = HashAlgorithm::Create("MD5");hash = algo->ComputeHash(message);
B. HashAlgorithm âlgo = HashAlgorithm::Create("MD5");hash = BitConverter::GetBytes(algo->GetHashCode());
C. HashAlgorithm âlgo;algo = HashAlgorithm::