Question 41
Type-safe code accesses only the memory locations:
-
It is authorized to access.
-
Of objects on the heap.
-
Of objects that are static or shared.
-
Of objects on the stack.
Correct Answer: A
Question 42
A type-safe language prevents:
-
Access to arbitrary memory locations.
-
Memory leaks.
-
Null reference exceptions.
-
Division by zero exceptions.
Correct Answer: A
Question 43
How does managed .NET code use an unmanaged COM object?
-
The CLR creates a runtime callable wrapper (RCW) that acts as a proxy for the unmanaged object.
-
The CLR uses events to create asynchronous calls to unmanaged code.
-
The CLR runs managed code and unmanaged code in separate threads.
-
The CLR uses shared assemblies to communicate between managed code and unmanaged code.
Correct Answer: A
Question 44
Type-safe code prevents:
-
Unauthorized memory access.
-
Slow performance.
-
Namespace conflicts.
-
Format exceptions.
Correct Answer: A
Question 45
You need to encrypt data by using a public key and a private key. Which .NET class should you use?
-
DESCryptoServiceProvider
-
RijndaelManaged
-
DSACryptoServiceProvider
-
TripleDESCryptoServiceProvider
Correct Answer: C
Question 46
You want to enable access to files and folders by using the .NET Framework. Which security class should you use?
-
UPermission
-
FileIOPermission
-
PrincipaIPermission
-
SecurityPermission
Correct Answer: B
Question 47
Which security policy level applies to all managed code on the computer?
-
Machine
-
User
-
Enterprise
-
Application domain
Correct Answer: A
Question 48
You need to create an access rule that allows a user named UserA in MyDomain to read the contents of the Log.txt file. Which code segment should you use?
Correct Answer: B
Question 49
Your application requests FileIOPermission to open a file. The permission is denied. Which type of exception will be thrown?
-
IOException
-
SecurityException
-
ArgumentException
-
VerificationException
Correct Answer: B
Question 50
An event declaration is shown in the following code segment. Public event
NewProduccEventHandlerNewProduct;
What is NewProductEventHandler in the event declaration?
-
A built-in data type for handling events.
-
An enumeration that defines the type of the NewProduct variable.
-
The name of the delegate that will dispatch the event.
-
The name of the class method that will catch the event.
Correct Answer: C
Instant Access to Download Latest Complete Collection of Microsoft MTA 98-372 Real Exam
Try Microsoft MTA 98-372 Free Demo
70-410 Dumps VCE PDF
70-411 Dumps VCE PDF
70-412 Dumps VCE PDF
70-413 Dumps VCE PDF
70-414 Dumps VCE PDF
70-417 Dumps VCE PDF
70-461 Dumps VCE PDF
70-462 Dumps VCE PDF
70-463 Dumps VCE PDF
70-464 Dumps VCE PDF
70-465 Dumps VCE PDF
70-480 Dumps VCE PDF
70-483 Dumps VCE PDF
70-486 Dumps VCE PDF
70-487 Dumps VCE PDF