New Updated Microsoft MTA 98-372 Real Exam Questions and Answers Download 61-70

Ensurepass

Question 61

You create an ArrayList object. You need to ensure that only objects of the System.DateTime type can be added to the collection. What should you do?

 

  1. Use a Hashtable collection.

  2. Use the ToString() method on objects that you add to the ArrayList.

  3. Use a List<T> collection.

  4. Restrict the ArrayList variable to a capacity of 16 items.

 

Correct Answer: C

 

 

Question 62

Which code segment prevents the class named Final from being inherited?

 

  1.  

98-372-demo-23

 

  1.  

98-372-demo-24

 

 

 

  1.  

98-372-demo-25

 

  1.  

98-372-demo-26

 

Correct Answer: D

 

 

Question 63

You use code from different companies. You need to avoid naming conflicts within your code. What should you do?

 

  1. Use global variables to reference each of the classes.

  2. Define each class as private.

  3. Deploy the classes as two separate files.

  4. Define the classes inside unique namespaces.

 

Correct Answer: C

 

 

Question 64

You need to create a DLL that contains classes that can be reused in other projects. Which type of Microsoft Visual Studio project should you use?

 

  1. Class Library

  2. Web Application

  3. Console Application

  4. Windows Service

 

Correct Answer: A

 

 

Question 65

You need to be able to install and uninstall an assembly from the Global Assembly Cache (GAC). Which tool should you use?

 

  1. Ngen.exe

  2. Resgen.exe

  3. GacUtil.exe

  4. Sn.exe

 

Correct Answer: A

 

 

Question 66

Common Intermediate Language (CIL) is converted into executable code by using:

 

  1. Microsoft Visual Studio.

  2. Interactive debugger.

  3. Just-in-Time (JIT) compiler.

  4. Intermediate Language Disassembler (ILDASM.exe).

 

Correct Answer: C

 

 

Question 67

When you delay sign a .NET assembly, the assembly will include:

 

  1. Both public key and private key.

  2. Only the public key.

  3. Only the private key

  4. Neither the public key nor the private key.

 

Correct Answer: B

 

 

Question 68

Which two actions are performed by the .NET Version class? (Choose two.)

 

  1. Returns the version number of the web browser

  2. Provides the base class for value types.

  3. Returns the version number of an assembly.

  4. Returns the version number of the Common Language Runtime.

 

Correct Answer: CD

 

 

Question 69

Which class should you use to perform a search of an XML document?

 

  1. XmlElement

  2. XPathDocument

  3. XmlNode

  4. XmlReader

 

Correct Answer: C

 

 

Question 70

You load an XML document named doc1 that has an attribute named EmployeeId. Which code fragment will set the value of EmployeeId to A23?

 

  1. Doc1.CreateAttribute(“EmployeeId”, “A23”);

  2. Doc1.DocumentElement.SetAttribute(“Employeeld”,”A23″);

  3. Doc1.CreateNode(“EmployeeId”, “A23”, “”);

  4. Doc1.CreateElement(“Employeeld”,”A23″);

 

Correct Answer: D

 

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

Try Microsoft MTA 98-372 Free Demo