New Updated Microsoft MTA 98-372 Real Exam Questions and Answers Download 11-20

Ensurepass

Question 11

Which describes the effect of applying the protected accessibility modifier to a method?

 

  1. The method is available to all classes derived from the declaring class.

  2. The method is available only to other methods in the same class.

  3. The method cannot be overridden in child classes.

  4. The method is available only to classes in the same assembly.

 

Correct Answer: A

 

 

Question 12

You want to create a class named ShoppingCart that has a type argument named TItem. The TItem type argument must be a value type. Which code segment should you use to define the

ShoppingCart class?

 

  1.  

98-372-demo-2

 

  1.  

98-372-demo-3

 

  1.  

98-372-demo-4

 

 

  1.  

98-372-demo-5

 

Correct Answer: D

 

 

Question 13

You create a class library named Contoso.Business. The library is used in a Windows application named Contoso.Ui. In which file should you store application configuration settings during deployment?

 

  1. Web.config

  2. Machine.config

  3. Contoso.Ui.config

  4. Contoso.Business.config

 

Correct Answer: C

 

 

Question 14

Which is the base class of all classes in the .NET Framework?

 

  1. System.Net

  2. System.Drawing

  3. System.Object

  4. System

 

Correct Answer: C

 

 

Question 15

You want to raise a custom exception. Which keyword should you use?

 

  1. Finally

  2. Catch

  3. Try

  4. Throw

 

Correct Answer: D

 

 

Question 16

What is the purpose of the app.config file?

 

  1. To configure the version of .NET targeted by the application.

  2. To load references to third-party libraries used by the application.

  3. To find out the programming language of the application.

  4. To configure the target operating system of the application.

 

Correct Answer: A

 

 

Question 17

What is the characteristic of a delegate?

 

  1. A type-safe function pointer

  2. An object that raises an event

  3. A tightly coupled event

  4. A property function that includes optional parameters

 

Correct Answer: B

 

 

Question 18

You define a method according to the following code segment. (Line numbers are included for reference only.)

 

98-372-demo-6

 

Where should you insert code that must be executed, regardless of whether or not an error is thrown?

 

  1. Between lines 05 and 06

  2. Between lines 08 and 09

  3. Between lines 11 and 12

  4. Between lines 12 and 13

 

Correct Answer: C

 

 

Question 19

You write code that reads a file from the disk. Which exception will catch an error if the file is missing?

 

  1. InvalidOperationException

  2. FaultException

  3. IOException

  4. ApplicationException

 

Correct Answer: C

 

 

Question 20

Which file contains the required .NET settings for an ASP.NET web application?

 

  1. Default.aspx

  2. Web.config

  3. Global.asax

  4. Site.master

 

Correct Answer: B

 

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

Try Microsoft MTA 98-372 Free Demo