单项选择题
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. -
单项选择题
YouworkasanapplicationdeveloperatCertkiller.com.YouaredevelopinganapplicationthatmakesuseofaQueueclassobjectnamedMyQueue.ThisQueueclassobjectwillbeusedtostoremessagessentbytheuserduringapplicationruntime.Theapplicationthatyouaredevelopingprovidesaninterfaceforadministratorsandaninterfaceforuserstocreatemessagereports.YouwanttoensurethatallusermessagesstoredintheMyQueueobjectareremovedwhenanadministratorselectstheresetoption.Whatshouldyoudo?()
A. Use the Enqueue method of the MyQueue object.
B. Use the Clear method of the MyQueue object.
C. Use the Dequeue method of the MyQueue object.
D. Use the TrimToSize method of the MyQueue object. -
多项选择题
YouworkasanapplicationdeveloperatCertkiller.com.Certkiller.comhasinstructedyoutocreateaclassnamedMetricFormula.ThisclasswillbeusedtocompareMetricUnitandEnglishUnitobjects.TheMetricFormulaiscurrentlydefinedasfollows(Linenumbersareusedforreferencepurposesonly):1.publicclassMetricFormula2.{3.4.}YouneedtoensurethattheMetricFormulaclasscanbeusedtocomparetherequiredobjects.Whatshouldyoudo?()
A. Add the following code on line 1: : IComparable {
B. Add the following code on line 1: : IComparer {
C. Add the following code on line 3: public int Compare (object x, object y) {// implementation code }
D. Add the following code on line 3: public int CompareTo (object obj) {// implementation code }
