The Microsoft Certified Professional Developer (
MCPD) credentials distinguish you as an expert Windows Application Developer, Web Application Developer, or Enterprise Applications Developer. These credentials demonstrate that you can build rich applications that target a variety of platforms using Microsoft .NET Framework 2.0.
It is well known that Microsoft MCPD certification training is experiencing a great demand in IT industry area. In recent years, the MCPD certification has become a global standard for many successful IT companies.
|
| Microsoft 70-536 Exam - Cheat-Test.com Free 70-536 Sample Questions: 1. You are writing a custom dictionary. The customdictionary class is named MyDictionary. You need to ensure that the dictionary is type safe. Which code segment should you use? A. class MyDictionary : Dictionary B. class MyDictionary : HashTable C. class MyDictionary : IDictionary D. class MyDictionary { ... } Dictionary t = new Dictionary(); MyDictionary dictionary = (MyDictionary)t; Answer: A 2. You are creating a class named Age. You need to ensure that the Age class is written such that collections of Age objects can be sorted. Which code segment should you use? A. public class Age { public int Value; public object CompareTo(object obj) { if (obj is Age) { Age _age = (Age) obj; return Value.CompareTo(obj); } throw new ArgumentException("object not an Age"); } } B. public class Age { public int Value; public object CompareTo(int iValue) { try { return Value.CompareTo(iValue); } catch { throw new ArgumentException ("object not an Age"); } } } C. public class Age : IComparable { public int Value; public int CompareTo(object obj) { if (obj is Age) { Age _age = (Age) obj; return Value.CompareTo(_age.Value); } throw new ArgumentException("object not an Age"); } } D. public class Age : IComparable { public int Value; public int CompareTo(object obj) { try { return Value.CompareTo(((Age) obj).Value); } catch { return 1; } } } Answer: C 3.You are creating a class to compare a speciallyformatted string. The default collation comparisons do not apply. You need to implement the IComparable interface. Which code segment should you use? A. public class Person : IComparable{ public int CompareTo(string other){ ... }} B. public class Person : IComparable{ public int CompareTo(object other){ ... }} C. public class Person : IComparable{ public bool CompareTo(string other){ ... }} D. public class Person : IComparable{ public bool CompareTo(object other){ ... }} Answer: A |
Download
more free actualtests questions and free pass4sure testking dumps