O'Reilly logo

Developing and Implementing Windows®-Based Applications with Visual C#™ .NET and Visual Studio® .NET Exam Cram™ 2 (Exam 70-316) by Priti Kalani, Amit Kalani, Kalani Kirk Hausman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Practice Questions

Question 1Which of the following are valid message type values that can be written in the event log? (Select all that apply.)
  • A. Error

  • B. FailureAudit

  • C. Information

  • D. Kill

  • E. Warning

A1: Answers A, B, C, and E are correct. The type of an event log message must be one of the EventLogEntryType enumerated values: Error, FailureAudit, Information, SuccessAudit, and Warning. Answer D is incorrect because the Kill method of the Process class is not a member of the EventLogEntryType enumeration.
Question 2You want to determine whether a given event log exists on a machine. Which of the following methods can you call to determine this?
  • A. Exists

  • B. SourceExists

  • C. GetEventLogs

  • D. LogNameFromSourceName

A2: Answer A is correct. The Exists ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required