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:

Fraud

Deliberate deception to secure unfair or unlawful gain, or to deprive a victim of a legal right.

Standard Deduction

A set amount the IRS allows taxpayers to deduct from their income before income tax is applied, reducing taxable income.

Taxpayer

An individual or entity that is obligated to make payments to municipal or government taxation agencies.

Single

A filing status for a taxpayer who is unmarried and does not qualify for other filing statuses like Head of Household.

Related Questions