Exam 70-536 : .NET Framework Application Development Foundation Part – 5

Question: You are developing an application to perform mathematical calculations. You develop a class named CalculationValues. You write a procedure named PerformCalculation that operates on an instance of the class. You need to ensure that the user interface of the application continues to respond while calculations are being performed. You… Continue reading

Exam 70-536 : .NET Framework Application Development Foundation Part – 4

Question: You need to select a class that is optimized for key-based item retrieval from both small and large collections. Which class should you choose? OrderedDictionary class HybridDictionary class ListDictionary class Hashtable class Correct Answer: 2 Question: You are developing a custom-collection class. You need to create a method in… Continue reading

Exam 70-536 : .NET Framework Application Development Foundation Part – 3

Question: You need to create a method to clear a Queue named q. Which code segment should you use? foreach (object e in q) { q.Dequeue(); } foreach (object e in q) { Enqueue(null); } q.Clear(); q.Dequeue(); Correct Answer: 3 Question: You need to return the contents of an isolated… Continue reading

Exam 70-536 : .NET Framework Application Development Foundation Part – 2

Question: You are writing a method to compress an array of bytes. The bytes to be compressed are passed to the method in a parameter named document. You need to compress the contents of the incoming parameter. Which code segment should you use? MemoryStream inStream = new MemoryStream(document); GZipStream zipStream… Continue reading

Exam 70-536 : .NET Framework Application Development Foundation Part – 1

Question: You need to identify a type that meets the following criteria: Is always a number. Is not greater than 65,535. Which type should you choose? System.UInt16 int System.String System.IntPtr Correct Answer: 1 Question: Your application uses two threads, named threadOne and threadTwo. You need to modify the code to… Continue reading