单项选择题
You work as an application developer at Certkiller .com. Certkiller .com uses an application that calculates monthly payments based upon client input. You are currently debugging this application using the Microsoft Visual Studio 2005 IDE. The application contains the following code:
public double CalculateMonthlyPayment (Single rate, double principal) {
//Implementation code }
You have discovered that unexpected results are being returned by the application. You would like to pause execution and display a message box containing an error message in the event of a negative or zero rate value is Passed to the CalculateMonthlyPayment method.
You need to ensure that this only occurs during debugging mode. What should you do?()
A.A
B.B
C.C
D.D
相关考题
-
多项选择题
YouaredefiningaclassnamedMyClassthatcontainsseveralchildobjects.MyClasscontainsamethodnamedProcessChildrenthatperformsactionsonthechildobjects.MyClassobjectswillbeserializable.YouneedtoensurethattheProcessChildrenmethodisexecutedaftertheMyClassobjectandallitschildobjectsarereconstructed.Whichtwoactionsshouldyouperform?()
A.Apply the OnDeserializing attribute to the ProcessChildren method.
B.Specify that MyClass implements the IDeserializationCallback interface.
C.Specify that MyClass inherits from the ObjectManager class.
D.Apply the OnSerialized attribute to the ProcessChildren method.
E.Create a GetObjectData method that calls ProcessChildren.
F.Create an OnDeserialization method that calls ProcessChildren. -
单项选择题
You work as an application developer at Certkiller .com. You are required to launch the App.exe process, and specify sample.txt as the input file. App.exe will then use the contents of sample.txt to establish the environment’scurrent settings.You need to ensure that the code you use meets these requirements. What should you do?()
A.A
B.B
C.C
D.D -
多项选择题
Youarecreatinganapplicationthatprovidesinformationaboutthelocalcomputer.Theapplicationcontainsaformthatlistseachlogicaldrivealongwiththedriveproperties,suchastype,volumelabel,andcapacity.Youneedtowriteaprocedurethatretrievespropertiesofeachlogicaldriveonthelocalcomputer.Whatshouldyoudo?()
A.Retrieve an instance of the FileSystemInfo class.
B.Retrieve an instance of the DriveInfo class.
C.Retrieve the drive capacity by using the DriveInfo.TotalSize property.
D.Determine if the drive is available by using the FileSystemInfo.Attributes property.
E.Retrieve the drive names of all logical drives on a computer by using the DriveInfo.GetDrives method.
F.Retrieve the drive capacity by using the FileSystemInfo.Attributes property.
