单项选择题
You work as an application developer at Certkiller .com. You are developing a collection class named ClientCollection, which is to be used for storing the names of Certkiller .com’s clients that are situated in various geographical areas. These client names are represented by the Client class. You are planning to create a method named SortClients in the ClientCollection class to arrange Client objects in ascending order. You need to ensure that the appropriate interface is implemented by the Client class to allow sorting.What interface should be used?()
A. IDictionary
B. IComparable
C. IComparer
D. IEqualityComparer
点击查看答案
相关考题
-
单项选择题
You work as an application developer at Certkiller .com. Certkiller .com wants you to develop an application that handles passes for Certkiller .com’s parking lot. The application has to store and retrieve vehicle information in a contiguous list that allows for advanced navigation techniques.You have already written and executed the following code: Vehicle v1, v2, v3, v4, v5; v1 = new Vehicle ("1M2567871Y91234574", "Nissan Silvia", 1996); v2 = new Vehicle ("1H2569122493456960", "Honda Civic", 1999); v3 = new Vehicle ("1F2569106891234589", "Mitsubishi Lancer", 2001); v4 = new Vehicle ("1F7969122491234589", "Mazda MX7", 1998); v5 = new Vehicle ("1T2569122493456123", "Toyota Supra", 2000); LinkedList vList = new LinkedList < Vehicle > (); LinkedListNode < Vehicle > vNode; vNode = vList.AddFirst (v1); vNode = vList.AddLast (v2); vNode = = vList.AddAfter (vNode, v3); vNode = = vList.AddAfter (vNode, v4); vList.AddLast (v5); foreach (Vehicle v in vList) { Console.WriteLine ("{0} {1} ({2})", v.MakeModel, v.Year, v.Vin); } What output will be produced in the console?()
A.A
B.B
C.C
D.D -
单项选择题
You work as an application developer at Certkiller .com. Certkiller .com wants you to develop an application that handles passes for Certkiller .com’s parking lot. The application has to store and retrieve vehicle information using a vehicle identification number (VIN).You need to use the correct code to ensure type-safety. What should you do?()
A.A
B.B
C.C
D.D -
单项选择题
YouworkasanapplicationdeveloperatCertkiller.com.YouaredevelopinganapplicationthatmakesuseofaQueueclassobjectnamedMyQueue.ThisQueueclassobjectwillbeusedtostoremessagessentbytheuserduringapplicationruntime.Youwouldliketoaccessthemessageatthebeginningofthequeue,priortoprocessingtheusermessages,withoutremovingit.Whatshouldyoudo?()
A. Use the Enqueue method of the MyQueue object.
B. Use the Contains method of the MyQueue object.
C. Use the Dequeue method of the MyQueue object.
D. Use the Peek method of the MyQueue object.
