- Q You create an ASP.NET application for a consulting company TestKing Insurance. TestKing uses the application to perform time tracking and to generate billing invoices. The accounts receivable department uses a page named PrepareInvoices.aspx to issue invoices to clients at the end of each month. During testing of the application, you discover that some invoices are being generated with negative values for the total amount due. The total amount due is calculated within a function named CalculateTotalDue, which is defined in the PrepareInvoices.aspx page. The call to CalculateDue is contained in the following code segment from PrepareInvoices.aspx. (Line numbers are included for reference only) 1 double TotalAmountDue; 2 totalAmountDue = CalculateTotalDue(); 3 totalAmountDue -= totalAmountDue * discountRate; You need to stop execution of the code within PrepareInvoices.aspx and enter the interactive debugger when CalculateTotalDue returns a negative value. What should you do? A. Modify the code segment as follows: double totalAmountDue; totalAmountDue = CalculateTotalDue(); System.Diagnostics.Debug.Assert(totalAmountDue >= 0); totalAmountDue -= totalAmountDue * discountRate; B. Modify the code segment as follows: double totalAmountDue; totalAmountDue = CalculateTotalDue(); totalAmountDue -= totalAmountDue * discountRate; System.Diagnostics.Debug.Assert(totalAmountDue >= 0); C. In the Watch window, add a watch expression of totalAmountDue < 0, and select the Break When Value Is True option. D. Set a breakpoint on line 3 of the code segment. Define a condition for the breakpoint to break when totalAmountDue < 0 is true. E. Set a breakpoint on line 2 of the code segment. Define a condition for the breakpoint to break when totalAmountDue < 0 is true.
- Q Differentiate static and kinetic firction.
- Q Which mail server is secure sendmail or Postfix and why in Linux?
- Q What is a rendezvous point?
- Q what is the floral formula of Restionaceae ?
- Q What do you mean by an atomic operation?
- Q What is pure virtual function? or what is abstract class?
- Q How can you link the automatic packing procedure with delivery type or item category?
- Q What is the Law of Conservation of Energy?
- Q What size is the 70's gm alternator pulley nut?
- Q What are the strengths of cherrypy?