Examlex

Solved

What Will Be the Value of DblSum After the Button

question 30

Multiple Choice

What will be the value of dblSum after the button btnAdd is clicked, assuming that 25 is entered by the user into txtNum1, and 35 is entered into txtNum2?
Private Sub btnAdd_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles btnAdd.Click

Dim dblNum1, dblNum2, dblSum As Double
DblNum1 = CDbl(txtNum1.Text)
DblNum2 = CDbl(txtNum2.Text)
DblSum = Sum(dblNum1, dblNum2)
LblSum.Text = dblSum.ToString()

End Sub

Function Sum(ByVal dblNum1 As Double, ByVal dblNum2 As Double) as Double
Return dblNum1 + dblNum2
End Function


Definitions:

Decision Making

The cognitive process of selecting a course of action from among multiple alternatives, often involving risk and uncertainty.

WACC

Weighted Average Cost of Capital, representing the average rate of return a company is expected to pay its security holders.

Return on Investment

Return on Investment (ROI) measures the gain or loss generated by an investment relative to the amount of money invested.

Minimised

Reduced to the smallest possible size, amount, degree, or level.

Related Questions