nerdexam
GIAC

GSSP-NET · Question #380

Ross works as a Software Developer for GenTech Inc. He develops a Windows-based application using Visual Studio .NET. He uses the Write method of the Debug and Trace classes to record information…

The correct answer is A. EventLogTraceListener RossTraceListener = new. See the full explanation below for the reasoning.

Question

Ross works as a Software Developer for GenTech Inc. He develops a Windows-based application using Visual Studio .NET. He uses the Write method of the Debug and Trace classes to record information about the execution of the application in Windows 2000 event log. Ross performs integration testing on the application. He wants to ensure that only one entry is made to the event log, each time a call is made to the Write method of either class. Which of the following code will he use to accomplish this? Each correct answer represents a complete solution. Choose two.

Options

  • AEventLogTraceListener RossTraceListener = new
  • BEventLogTraceListener RossDebugListener = new
  • CEventLogTraceListener RossTraceListener = new
  • DEventLogTraceListener RossDebugListener = new

How the community answered

(58 responses)
  • A
    78% (45)
  • B
    3% (2)
  • C
    12% (7)
  • D
    7% (4)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice