1. Question: Systems administrators have configured a connection string in the Machine.config file on every computer. It is identified using the key MySql, and there are no other connection strings. How can you access the connection string value programmatically?

    A
    ConfigurationManager.AppSettings("MySql")

    B
    ConfigurationManager.ConnectionStrings("MySql").ConnectionString

    C
    ConfigurationManager.ConnectionStrings.ElementInformation.Source

    D
    ConfigurationManager.AppSettings.GetKey("MySql")

    Note: Not available
    1. Report
  2. Question: You are creating a WPF application and want to read settings from a custom section in the application’s .config file. Which of the following should you do? (Choose all that apply.)

    A
    Create a class that derives from ConfigurationSection.

    B
    Create a class that implements IConfigurationSectionHandler.

    C
    Define a <configSections> section in the application’s .config file.

    D
    Create a custom section within the <configuration> section in the application’s .config file.

    Note: Not available
    1. Report
  3. Question: You write the following code to store application configuration settings:
    ConfigurationManager.AppSettings.[Set]("Key1", "Value1")
    Dim config As Configuration = _
    ConfigurationManager.OpenExeConfiguration( _
    ConfigurationUserLevel.None)
    config.AppSettings.Settings.Add("Key2", "Value2")
    config.Save((ConfigurationSaveMode.Modified))
    config.AppSettings.Settings.Add("Key3", "Value3")
    Which setting is stored?

    A
    Key1

    B
    Key2

    C
    Key3

    D
    None of the above

    Note: Not available
    1. Report
  4. Question: You are creating an assembly named MyClasses.dll. The classes in your assembly will be accessed by several different applications installed on your computer. You would like all the applications to access the same instance of the assembly. How can you allow other applications to reference the MyClasses.dll assembly centrally? (Choose all that apply.)

    A
    Use the .NET Framework 2.0 Configuration tool to add MyClasses.dll to the list of configured assemblies.

    B
    Use the .NET Framework 2.0 Configuration tool to add MyClasses.dll to the assembly cache.

    C
    Use Visual Studio to enable delay signing on the assembly.

    D
    Use Visual Studio to add a Setup project to the MyClasses solution.

    Note: Not available
    1. Report
  5. Question: You develop a Windows Forms application using version 3.5 of the .NET Framework. You test the assembly using .NET Framework version 1.1 and verify that it works correctly. Some computers in your organization do not have a more recent version of the .NET Framework. Which element can you add to your application’s .config file to allow the assembly to run using .NET Framework version 1.1 if that is the only version installed on the computer?

    A
    codeBase

    B
    assemblyIdentity

    C
    supportedRuntime

    D
    DEVPATH

    Note: Not available
    1. Report
  6. Question: You currently have two instances of Visual Studio open. You are using one instance to develop a class library, and you are using the second instance to create a WPF application that references the class library. You would like the WPF application to be able to access the referenced class library in the build folder, but you don’t want to add the class library to the assembly cache. Which environment variable should you add?

    A
    DEVPATH

    B
    PATH

    C
    APPDATA

    D
    PATHEXT

    Note: Not available
    1. Report
  7. Question: You create the following class:
    Public Class CustomInstaller
    Inherits Installer
    Public Sub New()
    MyBase.New()
    End Sub
    Public Overloads Overrides Sub Commit(ByVal mySavedState As IDictionary)
    MyBase.Commit(mySavedState)
    End Sub
    Public Overloads Overrides Sub Install(ByVal stateSaver As IDictionary)
    MyBase.Install(stateSaver)
    End Sub
    Public Overloads Overrides Sub Uninstall(ByVal savedState As IDictionary)
    MyBase.Uninstall(savedState)
    End Sub
    Public Overloads Overrides Sub Rollback(ByVal savedState As IDictionary)
    MyBase.Rollback(savedState)
    End Sub
    End Class
    What do you need to add to allow the installer to function when the assembly is called with the InstallUtil.exe tool?

    A
    Add a Setup project to the solution.

    B
    Add the Installing method.

    C
    Add a constructor that accepts an IDictionary object.

    D
    Add the RunInstaller attribute to the class.

    Note: Not available
    1. Report
  8. Question: You are implementing a custom Installer class. If the installation fails, you need to remove any files that were copied over during the installation attempt. In which method should you write the code to remove the files?

    A
    Install

    B
    Commit

    C
    Rollback

    D
    Uninstall

    Note: Not available
    1. Report
  9. Question: You are creating a custom installer for an application that needs to add events to the Application event log. Which of the following do you need to do during the setup process?

    A
    Call EventLog.CreateEventSource

    B
    Call EventLog.Create

    C
    Call EventLog.GetEventLogs

    D
    Call EventLog.WriteEntry

    Note: Not available
    1. Report
  10. Question: You are creating a custom tool for your IT department that analyzes failure audits generated by the operating system. Which event log should you examine?

    A
    Application

    B
    System

    C
    Security

    D
    Setup

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd