单项选择题
A. B. C. D.
You work as the application developer at Cert-Tech.com....
You work as the application developer at Cert-Tech.com. Cert-Tech.com uses Visual Studio.Net 2005 as its application development platform. You use a Windows XP Professional client computer named Client01 as your development computer. You are developing a .Net Framework 2.0 application on Client01. You write the code shown below:Public Class Shape Private shapeName as String Public Sub Shape(ByVal shapeName as String) Me.shapename=shapeName End Sub Public Overridable Fuction GetName() As String Return shapeName End Function Private Sub DrawShape() ’Additional code goes here End Sub End Class You later decide to have the application compiled and registered for COM interoperability. The other developers on your team complaing that they are unable to create an instance of the Shape class in their COM applications. You are required to ensure that COM applications are able to create an instance of the Shape class. What should you do?()
A.A B.B C.C D.D
Youaredevelopinganapplicationtoassisttheuserinconductin...
单项选择题You are developing an application to assist the user in conducting electronic surveys.The survey consists of 25 true-or-false questions.You need to perform the following tasks: Initialize each answer to true.Minimize the amount of memory used by each survey. Which storage option should you choose?()
A.BitVector32 answers = new BitVector32(1); B.BitVector32 answers = new BitVector32(-1); C.BitArray answers = new BitArray (1); D.BitArray answers = new BitArray(-1);
You are writing a custom dictionary.The custom-dictiona...
You are writing a custom dictionary.The custom-dictionary class is named MyDictionary.You need to ensure that the dictionary is type safe. Which code segment should you use?()