单项选择题
You work as an application developer at Certkiller .com. Certkiller .com has been contracted to develop an application for the local bank.You have been given the responsibility of creating this application and need to store each transaction record, which is identified using a complex transaction identifier,in memory. The bank informs you that the total amount of transaction records could reach 200 per day. To achieve this, you decide to utilize one of the existing collection classes in the .NET 2.0 class library. You need to ensure that you the collection class you select is the most efficient one for storing transaction records.What should you do?()
A. Select the ListDictionary collection class.
B. Select the HashTable collection class.
C. Select the Queue collection class.
D. Select the StringCollection collection class.
相关考题
-
单项选择题
YouworkasanapplicationdeveloperatCertkiller.com.Youarecurrentlyintheprocessofreviewinganapplicationthatwascreatedbyafellowdeveloper.TheapplicationthatyouarereviewingincludesadeclarationforacollectionnamedEmployeeList,whichstoresEmployeeobjects.Thedeclarationisshownbelow:publicclassEmployeeList:Enumerator,IEnumerable{//Classimplementation}YourequiretheabilitytoiteratethroughtheEmployeeListwithminimumdevelopmenteffort.Whatshouldyoudo?()
A. Utilize the switch statement
B. Utilize the dowhile statement
C. Utilize the foreach statement
D. Utilize the if statement -
单项选择题
YouworkastheapplicationdeveloperatCertkiller.com.Certkiller.comusesVisualStudio.NET2005asitsapplicationdevelopmentplatform.Youaredevelopinga.NETFramework2.0applicationusedtostoreatype-safelistofnamesande-mailaddresses.Thelistwillbepopulatedallatonesfromthesorteddatawhichmeansyouwellnotalwaysneedtoperforminsertionordeletionoperationsonthedata.Youarerequiredtochooseadatastructurethatoptimizesmemoryuseandhasgoodperformance.Whatshouldyoudo?()
A. The System.Collections.Generic.SortedList class should be used
B. The System.Collections.HashTable class should be used
C. The System.Collections.Generic.SortedDictionary class should be used
D. The System.Collections.SortedList class should be used -
单项选择题
YouworkasanapplicationdeveloperatCertkiller.com.YouhaverecentlycreatedacustomcollectionclassnamedShoppingListforalocalsupermarket.ThiscustomclasswillincludeShoppinItemobjectsthathavethepublicpropertieslistedbelow.*Name*AisleNumber*OnDiscountYouarerequiredtoenableusersofyourclasstoiteratethroughtheShoppingListcollection,andtolisteachproductnameandaislenumberusingtheforeachstatement.Youneedtoachievethisbydeclaringtheappropriatecode.Whatcodeshouldyouuse?()
A. public class ShoppingList : ICollection {// Class implementation }
B. public class ShoppingList : IEnumerator, IEnumerable {// Class implementation }
C. public class ShoppingList : Ilist {// Class implementation }
D. public class ShoppingList : Enum {// Class implementation }
