PrepAway - Latest Free Exam Questions & Answers

Category: 70-536

Exam 70-536: TS: Microsoft .NET Framework – Application Development Foundation

What code must you use?

You have been asked to profile a business application that can be accessible using the Event Log API.
You have started by adding the following code to create a custom event log:
if (EventLog.SourceExists (“Application1”))
EventLog.DeleteEventSource (“Application1”);
//Create new event log
EventLog.CreateEventSource (“Application1”, “Profile”);
You need to write an event to the Application1 event log.
What code must you use?

Which code segment should you use?

You are using the Microsoft Visual Studio 2005 IDE to examine the output of a method that returns a string.
You assign the output of the method to a string variable named fName. You need to write a code segment that prints the following on a single line The message:
“Test Failed: “
The value of fName if the value of fName does not equal “Certkiller” You also need to ensure that the code segment simultaneously facilitates uninterrupted execution of the application.
Which code segment should you use?

Which code segment should you use?

You are testing a newly developed method named PersistToDB. This method accepts a parameter of type EventLogEntry.
This method does not return a value. You need to create a code segment that helps you to test the method.
The code segment must read entries from the application log of local computers and then pass the entries on to the PersistToDB method.
The code block must pass only events of type Error or Warning from the source MySource to the PersistToDB method.
Which code segment should you use?


Page 19 of 23« First...10...1718192021...Last »