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

Question: You work as a developer at Company.com. You are creating an assembly named Company1. Company1 contains a public method. The global cache contains a second assembly named Company2. You must ensure that the public method is only called from Company2. Which permission class should you use? GacIdentityPermission PublisherIdentityPermission DataProtectionPermission… Continue reading

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

Question: You create a class library that contains the class hierarchy defined in the following code segment. (Line numbers are included for reference only.) 01 public class Group { 02 public Employee[] Employees; 03 } 04 public class Employee { 05 public string Name; 06 } 07 public class Manager… Continue reading

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

Question: You are defining a class named CompanyClass that contains several child objects. CompanyClass contains a method named ProcessChildren that performs actions on the child objects. CompanyClass objects will be serializable. You need to ensure that the ProcessChildren method is executed after the CompanyClass object and all its child objects… Continue reading

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

Question: You create a class library that is used by applications in three departments of your company. The library contains a Department class with the following definition. public class Department { public string name; public string manager; } Each application uses a custom configuration section to store departmentspecific values in… Continue reading

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

Question: You are testing a method that examines a running process. This method returns an ArrayList containing the name and full path of all modules that are loaded by the process. You need to list the modules loaded by a process named C:\TestApps\Process1.exe. Which code segment should you use? ArrayList… Continue reading

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