1. Question: You create a class library that is used by applications in three different departments of the The library contains a Department class with the following definition: Public Class Department Public name As String Public manager As String End Class Each application uses a custom configuration section to store department-specific values in the application configuration file as shown in the following code segment: <Departroent> <name>Hardware</name> <manager>Amy</manager> </Department> You need to create a Department object instance by using the field values retrieved from the application configuration file. How should you complete the code segment? To answer, drag the appropriate code segment or segments to the correct location or locations in the answer area.

    A
    <strong>Public Class deptHandler Implements IConfigurationSectionHandler</strong><br />���<strong> Public funciton Create(ByVal parent As Object, ByVal configCintext As Object, ByVal section As System.Xml.XmlNode)As _Object Implements System.Configuration.IConfigurationSectionHandler.Create</strong><br />������� Dim dept As Department=New department()<br />���������<strong> dept.name= section.SelectSingleNode("name").InnerText</strong><br />���������<strong> dept.manager=section.SelectSingleNode("manager").InnerText</strong><br />������ Return dept<br />� End Funtion<br />End Class

    B
    <strong>Public Class deptHandler Implements IConfigurationSectionHandler</strong><br />���<strong> Public funciton Create(ByVal parent As Object, ByVal configCintext As Object, ByVal section As System.Xml.XmlNode)As _Object Implements System.Configuration.IConfigurationSectionHandler.Create</strong><br />������� Dim dept As Department=New department()��������� <br />���������<strong> dept.manager=section.SelectSingleNode("manager").InnerText</strong><br />���������<strong> dept.name= section.SelectSingleNode("name").InnerText</strong><br />������ Return dept<br />� End Funtion<br />End Class

    C
    <strong>Public Class deptHandler Implements IConfigurationSectionHandler</strong><br />���<strong> Public funciton Create(ByVal parent As Object, ByVal configCintext As Object, ByVal section As System.Xml.XmlNode)As _Object Implements System.Configuration.IConfigurationSectionHandler.CreateXML</strong><br />������� Dim dept As Department=New department()<br />��������� <strong>dept.name= section.SelectSingleNode("name").InnerText</strong><br />��������<strong>� dept.manager=section.SelectSingleNode("manager").InnerText</strong><br />������ Return dept<br />� End Funtion<br />End Class

    D
    <strong>Public funciton Create(ByVal parent As Object, ByVal configCintext As Object, ByVal section As System.Xml.XmlNode)As _Object Implements System.Configuration.IConfigurationSectionHandler.Create</strong><br /><strong>��� Public Class deptHandler Implements IConfigurationSectionHandl</strong>er��� <br />������� Dim dept As Department=New department()<br />��<strong>������� dept.name= section.SelectSingleNode("name").InnerText</strong><br /><strong>��������� dept.manager=section.SelectSingleNode("manager").InnerText</strong><br />������ Return dept<br />� End Funtion<br />End Class

    Note: Not available
    1. Report
  2. Question: You are testing a newly developed method named PersistToDB. The method accepts a parameter of type EventLogEntry and does not return a value. The current test function is shown in the following code segment: 01 Public Sub TestPersistToDB() 03 For Each entry As EventLogEntry In myLog.Entries 05 If entry.Source = "MySource" Then 07 End If 09 Next "A Composite Solution With Just One Click" - Certification Guaranteed 199 Microsoft 70-536 Exam 11 End Sub The test function must read entries from the application log of local computers and then pass the entries to the PersistToDB() method. The test function implementation must pass only events of type Error or Warning from a source named MySource to the PersistToDB() method. You need to complete the code segment. Which code segments should you add to line 02 and between lines 05 and 07 in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

    A
    <p>Dim mylog As EventLog = New EventLog("Application",".")</p> <p>�</p> <p>If entry.EntryType = EventLogEntryType.Error OrElse</p> <p>entry.EntryType = EventLogEntryType.Warning Then</p> <p>�</p> <p>PersistToDB(entry)</p>

    B
    <p>Dim mylog As EventLog = New EventLog("Application",".")</p> <p>�PersistToDB(entry)</p> <p>If entry.EntryType = EventLogEntryType.Error OrElse</p> <p>entry.EntryType = EventLogEntryType.Warning Then</p> <p>�</p>

    C
    <p>Dim mylog As EventLog = New EventLog("Application",".")</p> <p>�</p> <p>If entry.EntryType = EventLogEntryType.Error OrElse<br />PersistToDB(entry)</p> <p>entry.EntryType = EventLogEntryType.Warning Then</p> <p>�</p>

    D
    <p>Dim mylog As EventLog = New EventLog("Application",".")</p> <p>�</p> <p>If entry.EntryType = EventLogEntryType.Error OrElse</p> <p>entry.EntryType = EventLogEntryType.Warning Then</p>

    Note: Not available
    1. Report
  3. Question: You need to add a string named strConn to the connection string section of the application configuration file. Which code segments should you use in sequence? To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order.

    A
    <p>Dim myConfig As Configuration=Configurationmanager.OpenExeConfiguration</p> <p>(ConfigurationUserLevel.None)</p> <p>�</p> <p>myConfig.ConnectionStrings.ConnectionStrings.Add(New ConnectionStringSettings("ConnStr1",strConn))</p> <p>�</p> <p>myConfig.Save()</p>

    B
    <p>Dim myConfig As Configuration=Configurationmanager.OpenExeConfiguration</p> <p>(ConfigurationUserLevel)</p> <p>�</p> <p>myConfig.ConnectionStrings.ConnectionStrings.Add(New ConnectionStringSettings("ConnStr1",strConn))</p> <p>�</p> <p>myConfig.Save()</p>

    C
    <p>Dim myConfig As Configuration=Configurationmanager.OpenExeConfiguration</p> <p>(ConfigurationUserLevel.None) </p> <p>myConfig.ConnectionStrings.ConnectionStrings.Add(New ConnectionStringSettings("ConnStr1",strConn))</p> myConfig.Commt()

    D
    <p>Dim myConfig As Configuration=Configurationmanager.OpenExeConfiguration<br />myConfig.ConnectionStrings.ConnectionStrings.Add(New ConnectionStringSettings("ConnStr1",strConn))</p> <p>(ConfigurationUserLevel.None)</p> <p>�myConfig.Save()</p>

    Note: Not available
    1. Report
  4. Question: You need to create a common language runtime (CLR) unit of isolation within an application. Which code segments should you use in sequence? To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order.

    A
    <p>Dim domain As AppDomain</p> <p>�domain=AppDomain.CreateDomain("MyDomain")</p>

    B
    <p>Dim domain As AppDomain</p> <p>�domain=AppDomain.CreateDomain("MyDomain")<br /><br />�mySetup.ShadowCopyFiles="true"<br /><br /></p>

    C
    <p>Dim domain As AppDomain</p> <p>domain=AppDomain.CreateDomain("MyDomain")<br /><br />mySetup.ShadowCopyFiles="true"<br /><br />Dim myProcess As System.Diagnostics.Precess</p>

    D
    <p>Dim domain As AppDomain</p> <p>�domain=AppDomain.CreateDomain("MyDomain")<br /><br />�Dim myProcess As System.Diagnostics.Precess</p>

    Note: Not available
    1. Report
  5. Question: You create a service application that monitors free space on a hard disk drive. You must ensure that the service application runs in the background and monitors the free space every minute. What should you do? To answer, you need to move the three appropriate actions from the list of actions to the answer area and arrange them in the correct order.

    A
    Add an instance of the System.Timers.Time class to the Service<br />class and configure it to fire every minute.<br /><br />Add code to the Onstart method of the Service class to start the timer.<br /><br />Add code to the Elapsed event handler of the timer to monitor<br />the free space on the hard disk drive.<br /><br />

    B
    Add an instance of the System.Timers.Time class to the Service<br />class and configure it to fire every minute.<br /><br />Add code to the Elapsed event handler of the timer to monitor<br />the free space on the hard disk drive.<br /><br />Add code to the Onstart method of the Service class to start the timer.

    C
    Add code to the Onstart method of the Service class to start the timer.<br /><br />Add code to the Elapsed event handler of the timer to monitor<br />the free space on the hard disk drive.<br /><br />Add an instance of the System.Timers.Time class to the Service<br />class and configure it to fire every minute.

    D
    Add an instance of the System.Timers.Time class to the Service<br />class and configure it to fire every minute.<br /><br />Add code to the Onstart method of the Service class to start the timer.<br /><br /><br />

    Note: Not available
    1. Report
  6. Question: You are developing an application to create a new file on the local file system. You need to define specific security settings for the file. You must deny the file inheritance of any default security settings during creation. "A Composite Solution With Just One Click" - Certification Guaranteed 60 Microsoft 70-536 Exam What should you do? To answer, move the three appropriate actions from the list of actions to the answer area and arrange them in the correct order.

    A
    create a new FileSecurity object.<br /><br />create a new FileSystemAccessRule object for eacyh permission<br />that you need, and each rule to the FileSecurity object.<br /><br />Create a new file by using a new FileStream object by passing the<br />fileSecurity object as a parameter to the FileStream constructor.<br /><br />

    B
    create a new FileSecurity object.<br /><br />Create a new file by using a new FileStream object by passing the<br />fileSecurity object as a parameter to the FileStream constructor.<br /><br /><br />create a new FileSystemAccessRule object for eacyh permission<br />that you need, and each rule to the FileSecurity object.

    C
    create a new FileSystemAccessRule object for eacyh permission<br />that you need, and each rule to the FileSecurity object.<br /><br />Create a new file by using a new FileStream object by passing the<br />fileSecurity object as a parameter to the FileStream constructor.<br /><br />

    D
    create a new FileSystemAccessRule object for eacyh permission<br />that you need, and each rule to the FileSecurity object.<br /><br />Create a new file by using a new FileStream object by passing the<br />fileSecurity object as a parameter to the FileStream constructor.<br /><br />create a new FileSecurity object.<br /><br />

    Note: Not available
    1. Report
  7. Question: You are creating a class that uses unmanaged resources. The class maintains references to managed resources on other objects. You need to ensure that users of the class can explicitly release resources when the class instance is no longer needed. Which actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

    A
    Define the class so that it implements the IDisposable interface<br /><br />Implement a Dispose() method that releases unmamaged<br />resources and calls methods on other object to release the managed resources.<br /><br />

    B
    Define the class so that it implements the IDisposable interface<br /><br />Implement a Dispose() method that releases unmamaged<br />resources and calls methods on other object to release the managed resources.<br /><br />Define the class so that it inherits from the WeakReference Class<br /><br />

    C
    Define the class so that it implements the IDisposable interface<br /><br />Implement a Dispose() method that releases unmamaged<br />resources and calls methods on other object to release the managed resources.<br /><br />Create a class destructor that call the Dispose() method of the unmanaged resource.

    D
    Implement a Dispose() method that releases unmamaged<br />resources and calls methods on other object to release the managed resources.<br /><br />

    Note: Not available
    1. Report
  8. Question: You are developing an application to create a new file on the local file system. You need to define specific security settings for the file. You must deny the file inheritance of any default security settings during creation. What should you do? To answer, move the three appropriate actions from the list of actions to the answer area and arrange them in the correct order

    A
    creare a new FileSecurity object.<br /><br />Create a new FileSystemAccessRule object for each permission<br />that you need and add each rule to the FileSceurity object.<br /><br />Create the file by using a new FileStream object by passing the <br />FileSecurity object as a parameter to the FileStream constructor.<br /><br />

    B
    creare a new FileSecurity object.<br /><br />Create a new FileSystemAccessRule object for each permission<br />that you need and add each rule to the FileSceurity object.<br /><br />Create the file by using a new FileStream object by passing the <br />FileSecurity object as a parameter to the FileStream constructor.<br /><br />Apply the permission by using the File Class.<br /><br />

    C
    Create a new FileSystemAccessRule object for each permission<br />that you need and add each rule to the FileSceurity object.<br /><br />Create the file by using a new FileStream object by passing the <br />FileSecurity object as a parameter to the FileStream constructor.<br /><br />creare a new FileSecurity object.

    D
    creare a new FileSecurity object.<br /><br />Create a new FileSystemAccessRule object for each permission<br />that you need and add each rule to the FileSceurity object.<br /><br />Create the file by using a new FileStream object by passing the <br />FileSecurity object as a parameter to the FileStream constructor.<br /><br />Create the file by using a new FileStream object by passing the FileSecurity<br />object as a parameter to the FileStream Constructor.<br /><br />

    Note: Not available
    1. Report
  9. Question: You are creating an application that provides information about the local computer. The application contains a form that lists each logical drive along with the drive properties, such as type, volume label, and capacity. You need to write a procedure that retrieves properties of each logical drive on the local computer. What should you do? To answer, move the three appropriate actions from the list of actions to the answer area and arrange them in the correct order

    A
    Retrieve the drive names of all logical drives on a computer by using the DriveInfo class. <br /><br />Retrieve an instance of the driveInfo class.<br /><br />Retrieve the drive capacity by using the FileSystemInfo. Attributes property. <br /><br />

    B
    Retrieve the drive names of all logical drives on a computer by using the DriveInfo class. <br /><br />Retrieve the drive capacity by using the FileSystemInfo. Attributes property. <br /><br />Retrieve an instance of the driveInfo class.

    C
    Retrieve an instance of the driveInfo class.<br /><br />Retrieve the drive capacity by using the FileSystemInfo. Attributes property. <br /><br />Retrieve the drive names of all logical drives on a computer by using the DriveInfo class. <br /><br />

    D
    Retrieve the drive names of all logical drives on a computer by using the DriveInfo class. <br /><br />Retrieve an instance of the driveInfo class.<br /><br />Retrieve the drive capacity by using the FileSystemInfo. Attributes property. <br /><br />Determine if the drive is available� by using the FileSystemInfo.Attributes property.<br /><br />

    Note: Not available
    1. Report
  10. Question: You create a service application that monitors free space on a hard disk drive. You must ensure that the service application runs in the background and monitors the What should you do? To answer, you need to move the three appropriate actions from the list of actions to the answer area and arrange them in the correct order.

    A
    Add an instance of the system.Timers.Timer class to the Service class and configure it to fire every minute. <br /><br />Add code to OnStart method of the Service class to start the timer. <br /><br />Add Code to the Elapsed event handler of the timer to monitor the free space on the hard disk drive. <br /><br />

    B
    Add code to OnStart method of the Service class to start the timer. <br /><br />Add Code to the Elapsed event handler of the timer to monitor the free space on the hard disk drive. <br /><br />Add an instance of the system.Timers.Timer class to the Service class and configure it to fire every minute. <br /><br />

    C
    Add an instance of the system.Timers.Timer class to the Service class and configure it to fire every minute. <br /><br />Add Code to the Elapsed event handler of the timer to monitor the free space on the hard disk drive. <br /><br />

    D
    Add an instance of the system.Timers.Timer class to the Service class and configure it to fire every minute. <br /><br />Add code to OnStart method of the Service class to start the timer. <br /><br />Add Code to the Elapsed event handler of the timer to monitor the free space on the hard disk drive. <br /><br />Add code to the the Tick event handler of the timer to monitor the free space on the hard disk drive.

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