New Updated Microsoft MTA 98-372 Real Exam Questions and Answers Download 31-40

Ensurepass

Question 31

You need to retrieve an assembly’s Version property. Which class should you use?

 

  1. AssemblyName

  2. MemberInfo

  3. Assembly

  4. OperatingSystem

 

Correct Answer: A

 

 

Question 32

You have created a program that writes status updates into a file. You want to modify the file. You need to ensure that other users can view the file while it is being modified. Which permission should you use to open the file?

 

  1. FileAccess.Write

  2. FileShare.Inheritable

  3. FileShare.Read

  4. FileShare.None

  5. FileAccess.Read

 

Correct Answer: C

Question 33

Which two classes in the .NET Framework allow you to delete a file? (Each correct answer presents a complete solution. Choose two.)

 

  1. System.IO.FileInfo

  2. System.IO.FileStream

  3. System.IO.Stream

  4. System.IO.Path

  5. System.IO.File

 

Correct Answer: AE

 

 

Question 34

You want to substitute values in a string that is displayed on the console. Which code fragment will display “Hello, World”?

 

  1. Console.WriteLine(“Hello, {0}”, “World”);

  2. Console.WriteLine(“Hello, (0)”, “World”);

  3. Console.WriteLine(“Hello, <0>”, “World”);

  4. Console.WriteLine(“Hello, [0]”, “World”);

 

Correct Answer: A

 

 

Question 35

Where are the command line arguments stored for a console application?

 

  1. In a value-type parameter that is passed to the Main method.

  2. In the Console.In property.

  3. In a string array parameter that is passed to the Main method.

  4. In the Console.Read() method.

 

Correct Answer: C

 

 

Question 36

You create a class that uses unmanaged resources. You need to ensure that users of the class can explicitly release resources when the instance of the class is no longer required. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

 

  1. Use a class destructor that is called from within the Dispose method.

  2. Implement the IDisposable interface.

  3. Inherit from the WeakReference class.

  4. Use a class destructor that calls the Kill method.

 

Correct Answer: AB

 

 

Question 37

Value type variables are stored in the:

 

  1. Code segment

  2. Heap

  3. Stack

  4. Text segment

 

Correct Answer: C

 

 

Question 38

Managed code manages:

 

  1. Database connections.

  2. Memory.

  3. Processor optimization.

  4. Source code.

 

Correct Answer: C

 

 

Question 39

What does the .NET Framework use to pass data between managed and unmanaged code?

 

  1. Marshaling

  2. Simple Object Access Protocol (SOAP)

  3. Deserialization

  4. File Transfer Protocol (FTP)

 

Correct Answer: A

 

 

Question 40

Which should you use to call a class written in C# from a program written in Microsoft Visual Basic .NET?

 

  1. The Visual Basic .NET syntax

  2. The Windows Communication Foundation (WCF) API

  3. A Component Object Model (COM) interface

  4. The C# syntax

 

Correct Answer: A

 

Instant Access to Download Latest Complete Collection of Microsoft MTA 98-372 Real Exam

Try Microsoft MTA 98-372 Free Demo