1. Question: 

    You create a service application that monitors free space on a hard disk drive.

    You need to ensure that the service application runs in the background and monitors the free space every minute.

    What should you do? (Each correct answer presents part of the solution. Choose three.)

    A
     Add an instance of the System.Timers.Timer class to the Service class and configure it to fire every minute.

    B
    Add code to the OnStart() method of the Service class to monitor the free space on the hard disk drive.

    C
    Add code to the OnStart() method of the Service class to start the timer. "A Composite Solution With Just One Click" - Certification Guaranteed 207 Microsoft 70-536 Exam

    D
    Add code to the Tick event handler of the timer to monitor the free space on the hard disk drive.

    E
    Add an instance of the System.Windows.Forms.Timer class to the Service class and configure it to fire every minute

    F
    Add code to the default constructor of the Service class to monitor the free space on the hard disk drive.

    G
    Add code to the Elapsed event handler of the timer to monitor the free space on the hard disk drive.

    Note: Not available
    1. Report
  2. Question: You need to log an entry in a custom event log when the EmailSenderService service is started and stopped. What should you do? (Each correct answer presents part of the solution. Choose three.)

    A
    Add the following code segment to line PO22 of the Poller.vb file: EventLog.WriteEntry("EmailSenderService", "Stopped", EventLogEntryType.Information)

    B
    Add the following code segment to line PO12 of the Poller.vb file: "A Composite Solution With Just One Click" - Certification Guaranteed 213 Microsoft 70-536 Exam EventLog.WriteEntry("EmailSenderService", "Started", EventLogEntryType.Information)

    C
    Add the following code segment to line PO22 of the Poller.vb file: EventLog.WriteEntry("Application", "EmailSenderService:Stopped", EventLogEntryType.Information)

    D
    Add the following code segment to line ES10 of the EmailSenderService.vb file: EventLog.CreateEventSource("Application", "EmailSenderService")

    E
    Add the following code segment to line PO12 of the Poller.vb file: EventLog.WriteEntry("Application", "EmailSenderService:Started", EventLogEntryType.Information)

    F
    Add the following code segment to line ES10 of the EmailSenderService.vb file: EventLog.CreateEventSource("EmailSenderService", "EmailLog")

    Note: Not available
    1. Report
  3. Question: You need to ensure that dates and numbers are displayed correctly for each user based on location. Which code segment should you add to line GL08 of the Global.asax file?

    A
    Dim info As CultureInfo = CType(System.Threading.Thread.CurrentThread.CurrentCulture.Clone(), CultureInfo) info = CultureInfo. CreateSpecificCulture(culture)

    B
    Dim cultureInfo As System.Globalization.CultureInfo = cultureInfo.GetCultureInfo(culture) System. Threading.Thread.CurrentThread.CurrentUICulture = cultureInfo

    C
    Dim cultureInfo As System.Globalization.CultureInfo = cultureInfo.CreateSpecificCulture (culture) System.Threading.Thread.CurrentThread.CurrentUICulture = cultureInfo

    D
    Dim cultureInfo As System.Globalization.CultureInfo = New System.Globalization.CultureInfo(culture) System.Threading.Thread.CurrentThread.CurrentCulture = cultureInfo

    Note: Not available
    1. Report
  4. Question: 

    You need to retrieve all queued e-mail messages into a collection and ensure type safety. Which code segment should you use to define the signature of the GetQueuedEmailsFromDb() method in the Poller.vb file?

    A
    Private Shared Function GetQueuedEmailsFromDb(ByVal queueID As Integer) As EmailMessages

    B
    Private Shared Function GetQueuedEmailsFromDb(ByVal queueID As Integer) As Object()

    C
    Private Shared Function GetQueuedEmailsFromDb(ByVal queueID As Integer) As IList(Of Object)

    D
    Private Shared Function GetQueuedEmailsFromDb(ByVal queueID As Integer) As ArrayList

    Note: Not available
    1. Report
  5. Question: You need to ensure that the list of queued e-mail messages is sorted by priority value from highest to lowest. Which code segment should you add to line LE15 of the Local Entities?

    A
    Return Priority.GetValueOrDefault(-1).CompareTo(other.Priority.GetValueOrDefault(-1)) * -1

    B
    Return Priority.GetValueOrDefault(-1).CompareTo(other.Priority.GetValueOrDefault(-1))

    C
    Return Priority.Value.CompareTo(other.Priority.Value)

    D
    Return Priority.Value.CompareTo(other.Priority.Value) * -1

    Note: Not available
    1. Report
  6. Question: You need to read the content of the XML log file. Which code segment should you add to line LO04 of the Login.aspx.vb file?

    A
    Dim fi As FileInfo = New FileInfo(filePath)
    fi.Refresh()

    Dim xml As String = fi.ToString()

    B
    Dim fi As FileInfo = New FileInfo(filePath)
    Dim xml As String = fi.ToString()
    fi.Refresh()

    C
    Dim sr As StreamReader = File.OpenText(filePath)
    sr.Close()
    Dim xml As String = sr.ReadToEnd()

    D
    Dim sr As StreamReader = File.OpenText(filePath)
    Dim xml As String = sr.ReadToEnd()
    sr.Close()

    Note: Not available
    1. Report
  7. Question: 

    You need to store Product, MainProduct, and SecondaryProduct instances that end users place in the shopping cart by using a collection. Which code segment should you use to initiate the collection?

    A
    Dim products As List(Of Product) = New List(Of Product)()

    B
    Dim products As IList(Of Product) = New List(Of Product)()

    C
    Dim products As ArrayList = New ArrayList()

    D
    Dim products As SortedList(Of String, Product) = New SortedList(Of String, Product)()

    Note: Not available
    1. Report
  8. Question: You develop a service application that needs to be deployed. Your network administrator creates a specific user account for your service application. You need to configure your service application to run in the context of this specific user account. What should you do?

    A
    Prior to installation, set the StartType property of the ServiceInstaller class.

    B
    Use the installutil.exe command-line tool to install the service.

    C
    Prior to installation, set the Account, Username, and Password properties of the ServiceProcessInstaller class.

    D
    Use the CONFIG option of the net.exe command-line tool to install the service.

    Note: Not available
    1. Report
  9. Question: 

    You need to implement the For loop of the Start() method contained in the Poller.vb file.

    Which code segments should you insert at line PO10 of the Poller.vb file? (Each correct answer presents part of the solution. Choose three.)

    A
    thread.Start(i)

    B
    thread.Start()

    C
    running.Add(1, False)

    D
    SenderThread(i)

    E
    Dim thread As Thread = New ThreadfNew ParameterizedThreadStart(AddressOf SenderThread))

    F
    running.Add(i, True)

    G
    Dim t As Thread = New Thread(Start)

    Note: Not available
    1. Report
  10. Question: 

    After an order is processed, the ProcessingComplete event is raised.

    The ProcessingComplete event must make information available to delegates about the order and the order processor.

    You need to ensure that when the ProcessingComplete event is raised, an instance of the ProcessComplete class is provided to event subscribers.

    Which base class should you use for the ProcessComplete class?

    A
    IEnumerable(Of Order)

    B
    CollectionBase

    C
    EventArgs

    D
    Attribute

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