New Updated Microsoft MTA 98-372 Real Exam Questions and Answers Download 111-120

Ensurepass

Question 111

Which describes an interface?

 

  1. Allows managed code to access unmanaged code.

  2. Contains code that implements properties, methods, and events.

  3. A template that defines a set of properties, methods, and events.

  4. Can be changed after it has been published.

 

Correct Answer: C

 

 

Question 112

Which type of casting enforces type safety?

 

  1. Reinterpret

  2. Implicit static

  3. Explicit static

  4. Explicit dynamic

 

Correct Answer: B

 

 

Question 113

A type-safe language prevents:

 

  1. Memory leaks.

  2. Access to arbitrary memory locations.

  3. Division by zero exceptions.

  4. Null reference exceptions.

 

Correct Answer: D

 

 

Question 114

Regarding C# code and Microsoft Visual Basic .NET code, language parity refers to the:

 

  1. Parts of the language where the syntax is identical.

  2. Functionality that is common in both languages even if the syntax is different.

  3. Fact that both languages are compiled as Microsoft Intermediate Language (MSIL).

  4. Ability of the two languages to interoperate.

 

Correct Answer: B

 

 

 

 

 

Question 115

Which describes the characteristic of the interoperability of the .NET Framework?

 

  1. Allows consistent communication between a desktop application and a mobile application.

  2. Allows consistent communication between a desktop application and a web application.

  3. Handles exceptions consistently across languages.

  4. Uses the same code syntax.

 

Correct Answer: C

 

 

Question 116

You are creating an application using .NET Framework 4.0. You write the following code segment in the application.

 

class CompGenerate <T>

where T . IComparable

{

public T t1;

public T t2;

public CompGenerate(T _t1, T _t2)

{

t1 = _t1;

t2 = _t2;

}

}

 

Given the above class declaration, which of the following constructors is correct?

 

  1. CompGenerate gen = new CompGenerate(10.125, 2005);

  2. CompGenerate<float> gen = new CompGenerate<float>();

  3. CompGenerate<double> gen = new CompGenerate<double>(10.125, 2005);

  4. CompGenerate<double, float> gen = new CompGenerate<double, float>(20.125, 10.525);

 

Correct Answer: C

 

 

Question 117

You are creating an application using .NET Framework 4.0. The application uses an instance of the short type. Which of the following values can be stored in the instance of the short type? Each correct answer represents a complete solution. Choose all that apply.

 

  1. -12

  2. 16,633

  3. 65,535

  4. -34,210

  5. 127,236

  6. 34,210

 

Correct Answer: AB

 

 

Question 118

You are creating an application using .NET Framework 4.0. You need to provide standard parameters for an event handler delegate. Which of the following are standard parameters for the event handler delegate? Each correct answer represents a complete solution. Choose all that apply.

 

  1. EventHandler

  2. Delegate

  3. Object

  4. Event

  5. EventArgs

 

Correct Answer: CE

 

 

Question 119

Allen is creating an application using .NET Framework 4.0. What structure will he use to handle exceptions in the application?

 

  1. Catch-exception

  2. Catch-finally

  3. Try-catch

  4. Throw-catch

 

Correct Answer: C

 

 

Question 120

Which of the following is an accurate description of generics?

 

  1. A type minimizing the reusability of code and type safety

  2. A class enabling the compiler to catch type-casting errors during runtime

  3. A class using placeholders for one or more of the types it uses

  4. A type storing a pointer to the data, instead of the actual data

 

Correct Answer: C

 

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

Try Microsoft MTA 98-372 Free Demo