Question 111
Which describes an interface?
A. Allows managed code to access unmanaged code.
B. Contains code that implements properties, methods, and events.
C. A template that defines a set of properties, methods, and events.
D. Can be changed after it has been published.
Correct Answer: C
Question 112
Which type of casting enforces type safety?
A. Reinterpret
B. Implicit static
C. Explicit static
D. Explicit dynamic
Correct Answer: B
Question 113
A type-safe language prevents:
A. Memory leaks.
B. Access to arbitrary memory locations.
C. Division by zero exceptions.
D. Null reference exceptions.
Correct Answer: D
Question 114
Regarding C# code and Microsoft Visual Basic .NET code, language parity refers to the:
A. Parts of the language where the syntax is identical.
B. Functionality that is common in both languages even if the syntax is different.
C. Fact that both languages are compiled as Microsoft Intermediate Language (MSIL).
D. Ability of the two languages to interoperate.
Correct Answer: B
Question 115
Which describes the characteristic of the interoperability of the .NET Framework?
A. Allows consistent communication between a desktop application and a mobile application.
B. Allows consistent communication between a desktop application and a web application.
C. Handles exceptions consistently across languages.
D. 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?
A. CompGenerate gen = new CompGenerate(10.125, 2005);
B. CompGenerate<float> gen = new CompGenerate<float>();
C. CompGenerate<double> gen = new CompGenerate<double>(10.125, 2005);
D. 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.
A. -12
B. 16,633
C. 65,535
D. -34,210
E. 127,236
F. 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.
A. EventHandler
B. Delegate
C. Object
D. Event
E. 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?
A. Catch-exception
B. Catch-finally
C. Try-catch
D. Throw-catch
Correct Answer: C
Question 120
Which of the following is an accurate description of generics?
A. A type minimizing the reusability of code and type safety
B. A class enabling the compiler to catch type-casting errors during runtime
C. A class using placeholders for one or more of the types it uses
D. A type storing a pointer to the data, instead of the actual data
Correct Answer: C
Instant Access to Download Testing Software & PDF File for Microsoft 98-372 Real Exam
Instant Access to Try Microsoft 98-372 Free Demo
70-410 Dumps VCE PDF
70-411 Dumps VCE PDF
70-412 Dumps VCE PDF
70-413 Dumps VCE PDF
70-414 Dumps VCE PDF
70-417 Dumps VCE PDF
70-461 Dumps VCE PDF
70-462 Dumps VCE PDF
70-463 Dumps VCE PDF
70-464 Dumps VCE PDF
70-465 Dumps VCE PDF
70-480 Dumps VCE PDF
70-483 Dumps VCE PDF
70-486 Dumps VCE PDF
70-487 Dumps VCE PDF