[Free] 2018(Jan) Dumps4cert Braindumps Microsoft 98-372 Dumps with VCE and PDF 111-120

Dumps4cert.com : Latest Dumps with PDF and VCE Files
2018 Jan Microsoft Official New Released 98-372
100% Free Download! 100% Pass Guaranteed!

Microsoft .NET Fundamentals

Question No: 111 – (Topic 1)

You want to access a native Win32 function from a .NET application. You import the function.

Which two keywords should you use to define the function? (Each correct answer presents part of the solution. Choose two.)

  1. Extern

  2. Static

  3. Private

  4. Public

Answer: A,B Explanation: Example:

using System.Runtime.InteropServices; using System.Windows.Interop;

using System.Diagnostics; using System.Threading;

public partial class MainWindow : Window


[DllImport(quot;user32.dllquot;, SetLastError = true)]

static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent);

[DllImport(quot;user32.dllquot;, SetLastError = true)]

static extern IntPtr FindWindow(string lpClassName, string lpWindowName);

public MainWindow()




private void btnHost_Click(object sender, RoutedEventArgs e)


WindowInteropHelper wndHelp = new WindowInteropHelper(this); Process.Start(quot;Notepad.exequot;);

// Sleep the thread in order to let the Notepad start completely Thread.Sleep(50);

SetParent(FindWindow(quot;NotePadquot;, quot;Untitled – Notepadquot;), wndHelp.Handle);



Question No: 112 – (Topic 1)

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.

Answer: B

Question No: 113 – (Topic 1)

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

Answer: C

Question No: 114 – (Topic 1)

Which two actions are performed by the .NET Version class? (Choose two.)

  1. Returns the version number of the web browser

  2. Provides the base class for value types.

  3. Returns the version number of an assembly.

  4. Returns the version number of the Common Language Runtime.

Answer: C,D

Explanation: The .NET Version class represents the version number of an assembly, operating system, or the common language runtime.

Question No: 115 – (Topic 1)

You need to be able to install and uninstall an assembly from the Global Assembly Cache (GAC).

Which tool should you use?

  1. Ngen.exe

  2. Resgen.exe

  3. GacUtil.exe

  4. Sn.exe

Answer: C

Explanation: Gacutil.exe (Global Assembly Cache Tool)

The Global Assembly Cache tool allows you to view and manipulate the contents of the global assembly cache and download cache.

Options include:

*/i assemblyPath

Installs an assembly into the global assembly cache.

*/u assemblyName

Uninstalls an assembly from the global assembly cache.

Topic 2, VB

Question No: 116 – (Topic 2)

You need to ensure that your console application can process each key as it is pressed. Which method should you use?

  1. Console.OpenStandardlnput

  2. Console.ReadLine

  3. Console.Read

  4. Console.ReadKey

Answer: D

Explanation: The Console.ReadKey methodobtains the next character or function key pressed by the user.

Question No: 117 – (Topic 2)

.NET managed code compiles into:

  1. Common Intermediate Language (CIL).

  2. Assembly language.

  3. Machine code.

  4. Extensible Application Markup Language (XAML).

Answer: A

Question No: 118 – (Topic 2)

Type-safe programming languages require that:

  1. All data conversions are done implicitly.

  2. All data conversions are done explicitly.

  3. Data conversions that might be unsafe are done explicitly.

  4. Data conversions that might be unsafe are done implicitly.

Answer: C

Explanation: *A language is type-safe if the only operations that can be performed on data in the language are those sanctioned by the type of the data.

*Explicit conversions (casts): Explicit conversions require a cast operator. Casting is required when information might be lost in the conversion, or when the conversion might not succeed for other reasons. Typical examples include numeric conversion to a type that has less precision or a smaller range, and conversion of a base-class instance to a derived class.


Not (All data conversions are done implicitly/explicitly):

In C#, you can perform the following kinds of conversions:

/Implicit conversions: No special syntax is required because the conversion is type safe and no data will be lost. Examples include conversions from smaller to larger integral types, and conversions from derived classes to base classes.

/Explicit conversions (casts): Explicit conversions require a cast operator.

/User-defined conversions.

/ Conversions with helper classes

Question No: 119 – (Topic 2)

Why do managed languages use references and not pointers?

  1. Pointer notation requires more characters than reference notation.

  2. Null pointers can lead to run-time errors.

  3. Pointers are not type-safe.

  4. Pointers are stored by using a fixed amount of memory.

Answer: C

Explanation: Type-safeaccesses only the memory locations it is authorized to access, and only in well-defined, allowable ways. Type-safe code cannot perform an operation on an object that is invalid for that object.

Question No: 120 – (Topic 2)

You create an XML document that has an XmlNode named node1.

Which code fragment will read the XML contained in node1 and its subnodes?

  1. Node1.InnerText

  2. Node1.CuterXml

  3. Node1.Value

  4. Node1.ToString ()

  5. Node1.InnerXml

Answer: B

100% Dumps4cert Free Download!
Download Free Demo:98-372 Demo PDF
100% Dumps4cert Free Guaranteed!
98-372 Dumps

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

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.