[Free] 2017(Sep) EnsurePass Braindumps Microsoft 98-372 Dumps with VCE and PDF 151-160

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

Microsoft .NET Fundamentals

Question No: 151 – (Topic 2)

Connection strings in the web.config file are:

  1. Stored in binary format.

  2. Automatically encrypted by the web server.

  3. Stored in clear text unless they are encrypted.

  4. Automatically encrypted when the project is published.

Answer: C

Explanation: When working with data source controls it is recommended that you centralize the location of your connection strings by storing them in the application#39;s Web.config file. This simplifies the management of connection strings by making them available to all of the ASP.NET pages in a Web application. In addition, you do not need to modify numerous individual pages if your connection string information changes. Finally, you can improve the security of sensitive information stored in a connection string, such as the database name, user name, password, andso on, by encrypting the connection string section of the Web.config file using protected configuration.

Question No: 152 – (Topic 2)

Common Intermediate Language (CIL) is converted into executable code by using:

  1. Intermediate Language Disassembler (ILDASM.exe).

  2. Interactive debugger.

  3. Microsoft Visual Studio.

  4. Just-in-Time (JIT) compiler.

Answer: D

Question No: 153 – (Topic 2)

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

  1. System.Net

  2. System.Drawing

  3. System

  4. System.Object

Answer: D

Question No: 154 – (Topic 2)

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

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

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

  3. The method cannot be overridden in child classes.

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

Answer: D

Question No: 155 – (Topic 2)

You want to create a method that can accept any data type as arguments.

Which feature of .NET languages allows you to create one method that will accept different data types on each call to the method?

  1. Overriding

  2. Delegates

  3. Generics

  4. Named Parameters

Answer: C

Question No: 156 – (Topic 2)

Which .NET object combines the identity and role of a user?

  1. WindowsPrincipal

  2. FormsIdentity

  3. WindowsIdentity

  4. GenericIdentity

Answer: A

Explanation: TheWindowsPrincipal Classenables code to check the Windows group membership of a Windows user.

The WindowsPrincipal class is primarily used to check the role of a Windows user.

Incorrect:

NotGenericIdentity:Represents a generic user.An identity object represents the user on whose behalf the code is running.

Question No: 157 – (Topic 2)

Which tool should you use to view the minimal, optional, and refused permission sets requested by an assembly?

  1. Permissions View

  2. Migration Policy

  3. Permission Verify

  4. Assembly Registration

Answer: A

Question No: 158 – (Topic 2)

Which is the build number of a Version object instantiated by using the following code fragment?

Dim v As New Version (2, 4, 6, 8)

  1. 2

  2. 4

  3. 6

  4. 8

Answer: C

Question No: 159 – (Topic 2)

A .NET application requires:

  1. Windows System Registry.

  2. Common Language Runtime.

  3. COM libraries.

  4. Web services.

Answer: B

Question No: 160 – (Topic 2)

What is the purpose of strong naming?

  1. To ensure that only one version of an assembly is stored in a directory at any point in time.

  2. To manage the references of the file list in an assembly#39;s manifest.

  3. To assign a globally unique key to the assembly.

  4. To impose restrictions on how different data types are defined within an assembly.

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

[Free] 2017(Sep) EnsurePass Braindumps Microsoft 98-372 Dumps with VCE and PDF 141-150

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

Microsoft .NET Fundamentals

Question No: 141 – (Topic 2)

Which collection enforces type safety?

  1. Listlt;Tgt;

  2. Hashtable

  3. Queue

  4. ArrayList

Answer: A

Question No: 142 – (Topic 2)

You need to suspend the current thread until all Finalize() methods have been processed. Which garbage collection method should you use?

  1. Dispose

  2. WaitforPendingFinalizers

  3. SuppressFinalize

  4. Collect

Answer: A

Question No: 143 – (Topic 2)

You create a program that writes a status message to a file every 10 seconds. You need to ensure that all data is written to the file before the file is closed.

When should you call the Flush() method?

  1. Before opening the file

  2. Before writing the entry

  3. After writing the entry

  4. When opening the file

Answer: C

Explanation: The Stream.Flush methodclears all buffers for this stream and causes any buffered data to be written to the underlying device.

Question No: 144 – (Topic 2)

You use code from different companies.

You need to avoid naming conflicts within your code. What should you do?

  1. Use global variables to reference each of the classes.

  2. Define the classes inside unique namespaces.

  3. Define each class as private.

  4. Deploy the classes as two separate files.

Answer: B

Explanation: NET development encourages unique namespaces.

Question No: 145 – (Topic 2)

Where are the command line arguments stored for a console application?

  1. In a value-type parameter that is passed to the Main method.

  2. In the Console.In property.

  3. In a string array parameter that is passed to the Main method.

  4. In the Console.Read() method.

Answer: C

Question No: 146 – (Topic 2)

Which collection enforces type safety?

  1. Listlt;Tgt;

  2. ArrayList

  3. Queue

  4. Hashtable

Answer: A

Question No: 147 – (Topic 2)

Which type of casting enforces type safety?

  1. Reinterpret

  2. Explicit static

  3. Implicit static

  4. Explicit dynamic

Answer: B

Question No: 148 – (Topic 2)

Value type variables are stored in the:

  1. Heap

  2. Text segment

  3. Code segment

  4. Stack

Answer: D

Question No: 149 – (Topic 2)

In .NET, the automatic memory management system enables:

  1. Synchronization.

  2. Managed code.

  3. Smart caching.

  4. Garbage collection.

Answer: D

Question No: 150 – (Topic 2)

You need to find out whether an application has access to delete files from the C:\Logs directory. Which code segment should you use?

  1. Dim permission As New FileIOPermission(FileIOPermissionAccess.Write, quot;C:\\Logsquot;)

  2. Dim permission A3 New FileIOPermission(FileIOPermissionAccess.PathDiscovery, quot;C:\\Logsquot;)

  3. Dim permission As New FileIOPermission(FiieIOPermissionAccess.Read, quot;C:\\Logsquot;)

  4. Dim permission As New FileIOPermission(FileIOPermissionAccess.Append, quot;C:\\Logsquot;)

Answer: A

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

[Free] 2017(Sep) EnsurePass Braindumps Microsoft 98-372 Dumps with VCE and PDF 131-140

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

Microsoft .NET Fundamentals

Question No: 131 – (Topic 2)

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

  1. Global.asax

  2. Default.aspx

  3. Site.master

  4. Web.config

Answer: D

Question No: 132 – (Topic 2)

You need to find out whether the active Windows user of an application is a member of the Administrators group.

Which permission class should you use?

  1. PublisherIdentityPermission

  2. PrincipalPermission

  3. SecurityPermission

  4. EnvironmentPermission

Answer: B

Question No: 133 – (Topic 2)

Which feature is automatically handled in managed code but must be explicitly handled in unmanaged code?

  1. Memory disposal

  2. Code signing

  3. Namespaces

  4. Exception handling

Answer: A

Explanation: Unmanaged code does not have a garbage collector and you will have to keep track of all your memory allocations to avoid memory leaks.

Question No: 134 – (Topic 2)

Which two types of actions can trigger an event? (Each correct answer presents a complete solution. Choose two.)

  1. Declaring the signature of the delegate.

  2. Some other program logic, such as a call to the program module,

  3. Adding a delegate keyword.

  4. User intervention, such as a mouse click,

Answer: A,D

Explanation: * A delegate is a type that holds a reference to a method. A delegate is declared with a signature that shows the return type and parameters for the methods it references, and can hold references only to methods that match its signature.

  • Events in the .NET Framework are based on the delegate model. The delegate model follows the observer design pattern, which enables a subscriber to register with, and receive notifications from, a provider. An event sender pushes a notification that an event has happened, and an event receiver receives that notification and defines a response to it.

  • Question No: 135 – (Topic 2)

    You create a custom exception class named MyCustomException that is derived from ApplicationException.

    Which code segment should you use to raise MyCustomException?

    Ensurepass 2017 PDF and VCE

    1. Option A

    2. Option B

    3. Option C

    4. Option D

    Answer: B

    Question No: 136 – (Topic 2)

    Which security policy level applies to all managed code on the computer?

    1. User

    2. Application domain

    3. Enterprise

    4. Machine

    Answer: D

    Question No: 137 – (Topic 2)

    An event is a/an:

    1. Message sent by an object to signal the occurrence of an action.

    2. Occurrence of a program at a specific time.

    3. Structure used to store output data.

    4. Object that responds to a message.

    Answer: A

    Question No: 138 – (Topic 2)

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

    Ensurepass 2017 PDF and VCE

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

    1. Between lines 03 and 04

    2. Between lines 04 and 05

    3. Between lines 05 and 06

    4. Between lines 06 and 07

    Answer: C

    Question No: 139 – (Topic 2)

    You create an unmanaged object and use the object. You no longer need the object. What should you do?

    1. Set the value of the variable to null.

    2. Cache the variable#39;s value in a static variable.

    3. Cast the object to its base type.

    4. Dispose the object to release memory.

    Answer: D

    Explanation: The term quot;unmanaged resourcequot; is usually used to describe something not directly under the control of the garbage collector. For example, if you open a connection to a database server this will use resources on the server (for maintaining the connection) and possibly other non-.net resources on the client machine, if the provider isn#39;t written entirely in managed code.

    This is why, for something like a database connection, it#39;s recommended you write your code thusly:

    using (var connection = new SqlConnection(quot;connection_string_herequot;))

    {

    // Code to use connection here

    }

    As this ensures that .Dispose() is called on the connection object, ensuring that any unmanaged resources are cleaned up.

    Question No: 140 – (Topic 2)

    What is an advantage of strongly typed code languages like .NET?

    1. Use of less memory.

    2. Improved readability.

    3. Use of efficient type casting.

    4. Capturing of errors during compilation.

    Answer: D

    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

    [Free] 2017(Sep) EnsurePass Braindumps Microsoft 98-372 Dumps with VCE and PDF 121-130

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

    Microsoft .NET Fundamentals

    Question No: 121 DRAG DROP – (Topic 2)

    Which programming languages can be managed, unmanaged, or both? (To answer, drag the appropriate option or options to the correct location or locations in the answer area. An option may be moved to more than one location, and some options may not be moved at all.)

    Ensurepass 2017 PDF and VCE

    Answer:

    Ensurepass 2017 PDF and VCE

    Explanation:

    Ensurepass 2017 PDF and VCE

    Note:

    *Managed code is a term coined by Microsoft to identify computer program source code that requires and will only execute under the management of a Common Language Runtime virtual machine (resulting in bytecode).This applies to both C# and VB .Net.

    Managed code needs a runtime (like the .NET CLT) to execute

    *Microsoft#39;s Visual C development environment can produce both managed code, running under the .NET CLR, or compiled binaries, running directly on the Windows platform with the help of its C Runtime Library.

    Question No: 122 – (Topic 2)

    An event declaration is shown in the following code segment. Public Event NewProduct As NewProductEventHandler What is NewProductEventHandler in the event declaration?

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

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

    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

    Question No: 123 – (Topic 2)

    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. A Component Object Model (COM) interface

    3. The Windows Communication Foundation (WCF) API

    4. The C# syntax

    Answer: A

    Question No: 124 – (Topic 2)

    Type-safe code prevents:

    1. Slow performance.

    2. Namespace conflicts.

    3. Format exceptions.

    4. Unauthorized memory access.

    Answer: D

    Explanation: Type-safe code accesses only the memory locations it is authorized to access.

    Question No: 125 – (Topic 2)

    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: 126 – (Topic 2)

    Which describes an interface?

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

    2. Allows managed code to access unmanaged code.

    3. Can be changed after it has been published.

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

    Answer: D

    Question No: 127 – (Topic 2)

    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 lines of code on the top of the code file. Imports RStudent = Contoso.Registration.Student

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

    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. Imports Contoso.Contacts Imports Contoso.Registration Refer to the classes by using the Student class.

    4. Add the following line of code on the top of the code file. Imports Contoso Refer to the classes by using the Student class wrapped within the regions named Registration and Contacts.

    Answer: A,C

    Question No: 128 – (Topic 2)

    Managed code manages:

    1. Processor optimization

    2. Database connections

    3. Source code

    4. Memory

    Answer: C

    Explanation: Managed code is a term coined by Microsoft to identify computer program source code that requires and will execute only under the management of a Common Language Runtime virtual machine (resulting in bytecode).

    Question No: 129 – (Topic 2)

    Which feature is available in both Microsoft Visual Basic .NET and C#?

    1. Static classes

    2. Named and optional arguments in methods

    3. Use of code that is not case-sensitive

    4. Use of code that is not type-safe

    Answer: B

    Question No: 130 – (Topic 2)

    Where is dynamic memory allocated?

    1. Code segment

    2. Stack

    3. Heap

    4. Text segment

    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

    [Free] 2017(Sep) EnsurePass Braindumps Microsoft 98-372 Dumps with VCE and PDF 111-120

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

    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()

    {

    InitializeComponent();

    }

    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.

    Incorrect:

    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% 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

    [Free] 2017(Sep) EnsurePass Braindumps Microsoft 98-372 Dumps with VCE and PDF 101-110

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

    Microsoft .NET Fundamentals

    Question No: 101 – (Topic 1)

    You want to create a method that can accept any data type as arguments.

    Which feature of .NET languages allows you to create one method that will accept different data types on each call to the method?

    1. Delegates

    2. Named Parameters

    3. Overriding

    4. Generics

    Answer: D

    Question No: 102 – (Topic 1)

    Which named permission set allows common Language Runtime (CLR) to run code but disallows the use of protected resources from the computer?

    1. FullTrust

    2. Execution

    3. Everything

    4. Nothing

    Answer: B

    Question No: 103 – (Topic 1)

    Which three policy types are .NET security policy levels? (Choose three.)

    1. Data policy

    2. Machine policy

    3. Application domain policy

    4. Enterprise policy

    5. Network policy

    Answer: B,C,D

    Explanation: The following table describes the four security policy levels provided by .NET Framework security.

  • Enterprise policy

    All managed code in an enterprise setting where an enterprise configuration file is distributed.

  • Machine policy

    All managed code on the computer.

  • User policy

    Code in all the processes associated with the current operating system user when the common language runtime starts.

  • Application domain policy

    Managed code in the host#39;s application domain

    Question No: 104 – (Topic 1)

    Which feature is available in both Microsoft Visual Basic .NET and C#f?

    1. Static classes

    2. Use of code that is not case-sensitive

    3. Use of code that is not type-safe

    4. Named and optional arguments in methods

    Answer: D

    Question No: 105 – (Topic 1)

    What does the .NET Framework use to pass data between managed and unmanaged code?

    1. Marshaling

    2. Simple Object Access Protocol (SOAP)

    3. Deserialization

    4. File Transfer Protocol (FTP)

    Answer: A

    Question No: 106 – (Topic 1)

    Why do managed languages use references and not pointers?

    1. Pointer notation requires more characters than reference notation.

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

    3. Pointers are not type-safe.

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

    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: 107 – (Topic 1)

    You need to encrypt data by using a public key and a private key. Which .NET class should you use?

    1. DESCryptoServiceProvider

    2. RijndaelManaged

    3. DSACryptoServiceProvider

    4. TripleDESCryptoServiceProvider

    Answer: C

    Explanation: You can use the DSACryptoServiceProvider class to create digital signatures and protect the integrity of your data.

    To use a public-key system to digitally sign a message, the sender first applies a hash function to the message to create a message digest. The sender then encrypts the message digest with the sender#39;s private key to create the sender#39;s personal signature.

    Question No: 108 – (Topic 1)

    You want to enable access to files and folders by using the .NET Framework. Which security class should you use?

    1. UPermission

    2. FileIOPermission

    3. PrincipaIPermission

    4. SecurityPermission

    Answer: B

    Question No: 109 – (Topic 1)

    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.ReadKey

    3. Console.Read

    4. Console.ReadLine

    Answer: B

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

    Question No: 110 – (Topic 1)

    Type-safe programming languages require that:

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

    2. All data conversions are done implicitly.

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

    4. All data conversions are done explicitly.

    Answer: A

    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.

    Incorrect:

    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

    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

  • [Free] 2017(Sep) EnsurePass Braindumps Microsoft 98-372 Dumps with VCE and PDF 91-100

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

    Microsoft .NET Fundamentals

    Question No: 91 – (Topic 1)

    Which two methods can you use to load an assembly? (Each correct answer presents a complete solution. Choose two.)

    1. GetLoadedModules()

    2. LoadModule(String, ByteQ)

    3. LoadFrom(String)

    4. Load(String)

    Answer: B,D Explanation:

    B: LoadModule(String, Byte[])

    Loads the module, internal to this assembly, with a common object file format (COFF)- based image containing an emitted module, or a resource file.

    D: Assembly.Load Method (String)

    Loads an assembly given the long form of its name.

    Question No: 92 – (Topic 1)

    Which code segment prevents the class named Final from being inherited?

    Ensurepass 2017 PDF and VCE

    1. Option A

    2. Option B

    3. Option C

    4. Option D

    Answer: D

    Question No: 93 – (Topic 1)

    The Common Language Specification (CLS) standard:

    1. Defines a common development environment for writing applications.

    2. Allows code written for a desktop application to run as a web application.

    3. Allows code written in different languages to interact.

    4. Defines a common syntax for all programming languages.

    Answer: C

    Question No: 94 – (Topic 1)

    Which type of casting enforces type safety?

    1. Reinterpret

    2. Implicit static

    3. Explicit static

    4. Explicit dynamic

    Answer: C

    Question No: 95 – (Topic 1)

    What is the name of the environment that runs .NET managed code?

    1. Common Language Runtime (CLR)

    2. Component Object Model (COM)

    3. Virtual Private Network (VPN)

    4. Microsoft Intermediate Language (MSIL)

    Answer: A

    Question No: 96 – (Topic 1)

    You want to insert a new line on the console.

    Which three code fragments will display quot;Helloquot; followed by a new line? (Each correct answer presents a complete solution. Choose three.)

    1. Console.Write(quot;Hello\tquot;) ;

    2. Console.Write(quot;Hello\nquot;);

    3. Console.Error.Write(quot;Hello\tquot;);

    4. Console.Error.WriteLine (quot;Helloquot;) ;

    5. Console.WriteLine(quot;Helloquot;);

    Answer: B,D,E

    Explanation: B: \n adds a newline.

    D: Console.Error.WriteLine writes a newline. E: Console.WriteLine writes a newline.

    Incorrect:

    A, C: \t is just a space

    Question No: 97 – (Topic 1)

    Which class should you use to perform a search of an XML document?

    1. XmlElement

    2. XPathDocument

    3. XmlNode

    4. XmlReader

    Answer: C

    Question No: 98 – (Topic 1)

    Which configuration file is automatically created by .NET when the file is needed by the application for the first time?

    1. Web.config

    2. App.config

    3. Machine.config

    4. User.config

    Answer: D

    Question No: 99 – (Topic 1)

    A .NET application requires:

    1. Windows System Registry.

    2. Common Language Runtime.

    3. COM libraries.

    4. Web services.

    Answer: B

    Question No: 100 – (Topic 1)

    Which feature is automatically handled in managed code but must be explicitly handled in unmanaged code?

    1. Namespaces

    2. Code signing

    3. Memory disposal

    4. Exception handling

    Answer: C

    Explanation: Unmanaged code does not have a garbage collector and you will have to keep track of all your memory allocations to avoid memory leaks.

    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

    [Free] 2017(Sep) EnsurePass Braindumps Microsoft 98-372 Dumps with VCE and PDF 81-90

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

    Microsoft .NET Fundamentals

    Question No: 81 – (Topic 1)

    Which security policy level applies to all managed code on the computer?

    1. Machine

    2. User

    3. Enterprise

    4. Application domain

    Answer: A

    Question No: 82 – (Topic 1)

    Which collection enforces type safety?

    1. Queue

    2. Hashtable

    3. ArrayList

    4. Listlt;Tgt;

    Answer: D

    Question No: 83 – (Topic 1)

    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.ToString ();

    2. Node1.OuterXml;

    3. Node1.InnerXml;

    4. Node1.InnerXext;

    5. Node1.Value;

    Answer: B

    Question No: 84 – (Topic 1)

    Which three actions can you perform by using the Strong Name tool? (Choose three.)

    1. Create a key pair for an assembly.

    2. Compile the assembly for the first time.

    3. Encrypt an assembly.

    4. Re-sign a previously signed assembly.

    5. Extract the public key from an assembly.

    Answer: A,D,E

    Explanation: A: sn -a identityKeyPairFile signaturePublicKeyFile

    Generates AssemblySignatureKeyAttribute data to migrate the identity key to the signature key from a file.

    D: sn -R[a] assembly infile

    Re-signs a previously signed or delay-signed assembly with the key pair in infile. If -Ra is used, hashes are recomputed for all files in the assembly.

    E: Sn -e assembly outfile

    Extracts the public key from assembly and stores it in outfile.

    • The Strong Name tool (Sn.exe) helps sign assemblies with strong names. Sn.exe provides options for key management, signature generation, and signature verification.

      Question No: 85 – (Topic 1)

      Managed code manages:

      1. Database connections.

      2. Memory.

      3. Processor optimization.

      4. Source code

      Answer: D

      Explanation: Managed code is a term coined by Microsoft to identify computer program source code that requires and will execute only under the management of a Common Language Runtime virtual machine (resulting in bytecode).

      Question No: 86 – (Topic 1)

      You need to configure security policy for the following policy levels:

      ->Machine

      ->User

      ->Enterprise

      Which .NET tool should you use?

      1. Policy Migration

      2. Code Access Security Policy

      3. Microsoft Intermediate Language Assembler

      4. Permissions View

      Answer: B

      Question No: 87 – (Topic 1)

      You want to debug a class library project that will be used by an application named MyApplication.exe.

      MyApplication.exe is not part of your Microsoft Visual Studio project and is not running currently. You want MyApplication.exe to start automatically.

      What should you do?

      1. Set the project#39;s Start Action setting to Start external program and select MyApplication.exe.

      2. Set the command line arguments to debug:MyApplication.exe.

      3. Set the command line arguments to start:MyApplication.exe.

      4. Set the project#39;s Start Action setting to Start project.

      Answer: A

      Explanation: The StartAction property for a project indicates the item to start when the application is debugged: the project, a custom program, a URL, or nothing.

      When set to Start external program, the property indicates that a specific program should be started when the application is debugged.

      Question No: 88 – (Topic 1)

      Type-safe code prevents:

      1. Unauthorized memory access.

      2. Slow performance.

      3. Namespace conflicts.

      4. Format exceptions.

      Answer: A

      Explanation: Type-safe code accesses only the memory locations it is authorized to access.

      Question No: 89 – (Topic 1)

      Value type variables are stored in the:

      1. Code segment

      2. Heap

      3. Stack

      4. Text segment

      Answer: C

      Question No: 90 – (Topic 1)

      Which namespace should you reference while using the StreamWriter class?

      1. System.Text

      2. System.Drawing

      3. System.IO

      4. System.Printing

      Answer: C

      Explanation: The StreamWriterclassbelongs to theSystem.IOnamespace.

      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

    [Free] 2017(Sep) EnsurePass Braindumps Microsoft 98-372 Dumps with VCE and PDF 71-80

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

    Microsoft .NET Fundamentals

    Question No: 71 – (Topic 1)

    Type-safe code accesses only the memory locations:

    1. It is authorized to access.

    2. Of objects on the heap.

    3. Of objects that are static or shared.

    4. Of objects on the stack.

    Answer: A

    Question No: 72 – (Topic 1)

    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

    Answer: B

    Question No: 73 – (Topic 1)

    You create an unmanaged object and use the object. You no longer need the object. What should you do?

    1. Set the value of the variable to null.

    2. Cache the variable#39;s value in a static variable.

    3. Dispose the object to release memory.

    4. Cast the object to its base type.

    Answer: C

    Explanation: The term quot;unmanaged resourcequot; is usually used to describe something not directly under the control of the garbage collector. For example, if you open a connection to a database server this will use resources on the server (for maintaining the connection) and possibly other non-.net resources on the client machine, if the provider isn#39;t written entirely in managed code.

    This is why, for something like a database connection, it#39;s recommended you write your code thusly:

    using (var connection = new SqlConnection(quot;connection_string_herequot;))

    {

    // Code to use connection here

    }

    As this ensures that .Dispose() is called on the connection object, ensuring that any unmanaged resources are cleaned up.

    Question No: 74 – (Topic 1)

    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

    Answer: A

    Explanation: The .NET Framework defines a special type (Delegate) that provides the functionality of a function pointer.

    A delegate is a class that can hold a reference to a method. Unlike other classes, a delegate class has a signature, and it can hold references only to methods that match its signature. A delegate is thus equivalent to a type-safe function pointer or a callback.

    Question No: 75 – (Topic 1)

    Where are the command line arguments stored for a console application?

    1. In a value-type parameter that is passed to the Main method.

    2. In the Console.In property.

    3. In a string array parameter that is passed to the Main method.

    4. In the Console.Read() method.

    Answer: C

    Question No: 76 – (Topic 1)

    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.

    Answer: A

    Question No: 77 – (Topic 1)

    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

    Answer: C

    Explanation: The project system stores application settings in two XML files: an app.config file, which is created at design time when you create the first application setting; and a user.config file, which is created at run time when the user who runs the application changes the value of any user setting.

    Question No: 78 – (Topic 1)

    You need to create an access rule that allows a user named UserA in MyDomain to read the contents of the Log.txt file.

    Which code segment should you use?

    Ensurepass 2017 PDF and VCE

    1. Option A

    2. Option B

    3. Option C

    4. Option D

    Answer: B

    Question No: 79 – (Topic 1)

    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.

    Answer: C

    Question No: 80 – (Topic 1)

    Connection strings in the web.config file are:

    1. Automatically encrypted when the project is published.

    2. Automatically encrypted by the web server.

    3. Stored in binary format.

    4. Stored in clear text unless they are encrypted.

    Answer: D

    Explanation: When working with data source controls it is recommended that you centralize the location of your connection strings by storing them in the application#39;s Web.config file. This simplifies the management of connection strings by making them available to all of the ASP.NET pages in a Web application. In addition, you do not need to modify numerous individual pages if your connection string information changes. Finally, you can improve the security of sensitive information stored in a connection string, such as the database name, user name, password, and so on, by encrypting the connection string section of the Web.config file using protected configuration.

    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

    [Free] 2017(Sep) EnsurePass Braindumps Microsoft 98-372 Dumps with VCE and PDF 61-70

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

    Microsoft .NET Fundamentals

    Question No: 61 – (Topic 1)

    Which part of the .NET Framework verifies that code is type-safe?

    1. Microsoft Intermediate Language (MSIL) compiler

    2. Common Type System (CTS)

    3. Just-in-Time (JIT) compiler

    4. Base Class Library (BCL)

    Answer: C

    Question No: 62 – (Topic 1)

    You need to suspend the current thread until all Finalize() methods have been processed. Which garbage collection method should you use?

    1. WaitforPendingFinalizers

    2. SuppressFinalize

    3. Collect

    4. Dispose

    Answer: D

    Question No: 63 – (Topic 1)

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

    Ensurepass 2017 PDF and VCE

    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

    Answer: C

    Question No: 64 – (Topic 1)

    Custom event delegates are used to:

    1. Raise one or more custom events

    2. Handle errors generated in a try block.

    3. Route events to one or more event handlers.

    4. Process mouse clicks or keyboard input.

    Answer: C

    Question No: 65 – (Topic 1)

    Which two tasks does the interoperability of the .NET language allow you to perform? (Choose two.)

    1. Use classes written in C# from Microsoft Visual Basic .NET code.

    2. Write a method by using identical syntax of both C# and Microsoft Visual Basic .NET.

    3. Create methods written in both C# and Microsoft Visual Basic .NET in the same class.

    4. Use classes written in Microsoft Visual Basic .NET from C# code.

    5. Convert C# code to Microsoft Visual Basic .NET or convert Visual Basic .NET code to C#.

    Answer: A,D

    Question No: 66 – (Topic 1)

    Which three characteristics define the identity of an assembly? (Each correct answer presents part of the solution. Choose three.)

    1. Simple text name

    2. File size

    3. File creation date

    4. Culture information

    5. Version number

    Answer: A,D,E

    Explanation: * The Assembly Class represents an assembly, which is a reusable, versionable (D), and self-describing building block of a common language runtime application.

  • Assembly Properties include_

    / FullName (A)

    Gets the display name of the assembly.

  • (D) The AssemblyName.CultureInfo property gets or sets the culture supported by the assembly.

  • Question No: 67 – (Topic 1)

    The SecureString class:

    1. Ensures that a password is strong enough.

    2. Protects data from being revealed during garbage collection.

    3. Ensures that memory will always be available for a string.

    4. Remains in memory always.

    Answer: B

    Question No: 68 – (Topic 1)

    A type-safe language prevents:

    1. Memory leaks.

    2. Access to arbitrary memory locations.

    3. Division by zero exceptions.

    4. Null reference exceptions.

    Answer: B

    Explanation: Type-safe code accesses only the memory locations it is authorized to access.

    Question No: 69 – (Topic 1)

    Which format is the correct version for a .NET application?

    1. minor.major.revision.build

    2. build.revision.minor.major

    3. major.minor.build.revision

    4. revision.build.major.minor

    Answer: C

    Question No: 70 – (Topic 1)

    You want to encrypt the connection string stored in the web.config file. Which tool should you use?

    1. ASP.NET IIS Registration Tool (RegIIS.exe)

    2. Intermediate Language Disassembler (ILDASM.exe)

    3. Web Site Administration Tool

    4. Dotfuscator Software Services

    Answer: A

    Explanation: You can use the ASP.NET IIS Registration Tool (Aspnet_regiis.exe) to encrypt or decrypt sections of a Web configuration file.

    Example:

    The following command encrypts the connectionStrings element in the Web.config file for the application SampleApplication.

    aspnet_regiis -pe quot;connectionStringsquot; -app quot;/SampleApplicationquot; -prov quot;RsaProtectedConfigurationProviderquot;

    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