New Updated Microsoft MTA 98-372 Real Exam Questions and Answers Download 71-80

Ensurepass

Question 71

You create a custom exception class named MyCustomException that is derived from

ApplicationException. Which code segment should you use to raise MyCustomException?

 

  1.  

98-372-demo-27

 

  1.  

98-372-demo-28

 

  1.  

98-372-demo-29

 

  1.  

98-372-demo-30

 

Correct Answer: B

 

 

Question 72

Custom event delegates are used to:

 

  1. Raise one or more custom events

  2. Handle errors generated in a try block.

  3. Route events to one or more event handlers.

  4. Process mouse clicks or keyboard input.

 

Correct Answer: C

 

 

Question 73

An event is a/an:

 

  1. Structure used to store output data.

  2. Message sent by an object to signal the occurrence of an action.

  3. Occurrence of a program at a specific time.

  4. Object that responds to a message.

 

Correct Answer: B

 

 

Question 74

You want to encrypt the connection string stored in the web.config file. Which tool should you use?

 

  1. ASP.NET IIS Registration Tool (RegIIS.exe)

  2. Intermediate Language Disassembler (ILDASM.exe)

  3. Web Site Administration Tool

  4. Dotfuscator Software Services

 

Correct Answer: C

 

 

Question 75

Which namespace should you reference while using the StreamWriter class?

 

  1. System.Text

  2. System.Drawing

  3. System.IO

  4. System.Printing

 

Correct Answer: C

 

 

Question 76

You want to use a collection to store Order items. The collection must be thread-safe and must provide access to the items in a last-in-first-out sequence. Which type of collection should you use?

 

  1. LinkedList

  2. ConcurrentQueue

  3. ConcurrentStack

  4. NameValueCollection

 

Correct Answer: C

 

 

Question 77

You want to create a method that can accept any data type as arguments. Which feature of .NET languages allows you to create one method that will accept different data types on each call to the method?

 

  1. Delegates

  2. Named Parameters

  3. Overriding

  4. Generics

 

Correct Answer: D

 

 

Question 78

A base class named MasterData is defined according to the following code segment.

 

98-372-demo-31

 

Which code segment should you use to define a method named LoadData that overrides the method in the MasterData class?

 

  1.  

98-372-demo-32

 

  1.  

98-372-demo-33

 

  1.  

98-372-demo-34

 

 

 

 

 

 

 

  1.  

98-372-demo-35

 

Correct Answer: D

 

 

Question 79

A .NET application requires:

 

  1. Windows System Registry.

  2. Common Language Runtime.

  3. COM libraries.

  4. Web services.

 

Correct Answer: B

 

 

Question 80

You create an unmanaged object and use the object. You no longer need the object. What should you do?

 

  1. Set the value of the variable to null.

  2. Cache the variable’s value in a static variable.

  3. Dispose the object to release memory.

  4. Cast the object to its base type.

 

Correct Answer: C

 

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

Try Microsoft MTA 98-372 Free Demo