[Free] 2017(Oct) EnsurePass Testinsides Microsoft 98-372 Dumps with VCE and PDF 21-30

EnsurePass
2017 Oct Microsoft Official New Released 98-372
100% Free Download! 100% Pass Guaranteed!
http://www.EnsurePass.com/98-372.html

Microsoft .NET Fundamentals

Question No: 21 – (Topic 1)

Which two actions should you perform to consume events defined in another class? (Each correct answer presents part of the solution. Choose two.)

  1. Define a method that raises the event.

  2. Set the current class as a sealed class.

  3. Place a reference to the consuming class in the class that raises the event.

  4. Match the signature of the delegate declared for the event.

  5. Define an event handler method

Answer: D,E

Question No: 22 – (Topic 1)

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.

Answer: B

Question No: 23 – (Topic 1)

Which two elements are included in a .NET assembly? (Choose two.)

  1. Microsoft Intermediate Language (MSIL) code

  2. Extensible Markup Language (XML) code

  3. Extensible Application Markup Language (XAML) code

  4. Type metadata

  5. Declared variable types

Answer: A,D

Explanation: In general, a static assembly can consist of four elements:

/ The assembly manifest, which contains assembly metadata.

/(D)Type metadata.

/(A)Microsoft intermediate language (MSIL) code that implements the types.

/ A set of resources.

Single-file assembly

Ensurepass 2017 PDF and VCE

MyAssembly.dll

Question No: 24 – (Topic 1)

A class named Student is contained inside a namespace named Contoso.Registration. Another class named Student is contained inside a namespace named Contoso.Contacts.

You need to use both classes within the same code file.

What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

  1. Add the following line of code on the top of the code file, Using Contoso;

    Refer to the classes by using the Student class wrapped within the regions named Registration and Contacts.

  2. Refer to the classes by using their fully qualified class names, Contoso.Registration.Student and Contoso.Contacts.Student.

  3. Add the following lines of code on the top of the code file. Using Contoso.Contacts;

    Using Contoso.Registration;

    Refer to the classes by using the Student class.

  4. Add the following lines of code on the top of the code file. Using RStudent = Contoso.Registration.Student;

Using CStudent = Contoso.Contacts.Student; Refer to the classes as RStudent and CStudent.

Answer: A,C

Question No: 25 – (Topic 1)

Which two classes in the .NET Framework allow you to delete a file? (Each correct answer presents a complete solution. Choose two.)

  1. System.IO.FileInfo

  2. System.IO.FileStream

  3. System.IO.Stream

  4. System.IO.Path

  5. System.IO.File

Answer: A,E

Explanation: A: System.IO.FileInfo provides properties and instance methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of FileStream objects.

E: System.IO.File provides static methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of FileStream objects.

Incorrect:

Not B: System.IO.FileStream exposes a Stream around a file, supporting both synchronous and asynchronous read and write operations.

Question No: 26 – (Topic 1)

In which folder should you store the web.config file in a .NET web application?

  1. App_Data

  2. App_Code

  3. Root

  4. Bin

Answer: C

Question No: 27 – (Topic 1)

Which should you use to call a class written in C# from a program written in Microsoft Visual Basic .NET?

  1. The Visual Basic .NET syntax

  2. The Windows Communication Foundation (WCF) API

  3. A Component Object Model (COM) interface

  4. The C# syntax

Answer: A

Question No: 28 – (Topic 1)

How does managed .NET code use an unmanaged COM object?

  1. The CLR creates a runtime callable wrapper (RCW) that acts as a proxy for the unmanaged object.

  2. The CLR uses events to create asynchronous calls to unmanaged code.

  3. The CLR runs managed code and unmanaged code in separate threads.

  4. The CLR uses shared assemblies to communicate between managed code and unmanaged code.

Answer: A

Question No: 29 – (Topic 1)

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

Answer: A

Question No: 30 – (Topic 1)

An event declaration is shown in the following code segment. Public event NewProduccEventHandlerNewProduct;

What is NewProductEventHandler in the event declaration?

  1. A built-in data type for handling events.

  2. An enumeration that defines the type of the NewProduct variable.

  3. The name of the delegate that will dispatch the event.

  4. The name of the class method that will catch the event.

Answer: C

100% Free Download!
Download Free Demo:98-372 Demo PDF
100% Pass Guaranteed!
Download 2017 EnsurePass 98-372 Full Exam PDF and VCE

EnsurePass ExamCollection Testking
Lowest Price Guarantee Yes No No
Up-to-Dated Yes No No
Real Questions Yes No No
Explanation Yes No No
PDF VCE Yes No No
Free VCE Simulator Yes No No
Instant Download Yes No No

2017 EnsurePass IT Certification PDF and VCE

Leave a Reply

Your email address will not be published. Required fields are marked *