What will be the output of the following program when the button is clicked?

Private Sub btnDisplay_Click(...) Handles btnDisplay.Click
Dim x, y, z As Double
x = 3
y = 3
If x > y Then
z = x + y
Else
z = y - x
End If
txtBox.Text = CStr(z)
End Sub```

```
(A) 6
(B) 3
(C) 0
(D) No output


(C) 0

Computer Science & Information Technology

You might also like to view...

What will be the value of bonus after the following statements are executed?

``` int bonus, sales = 10000; if (sales < 5000) bonus = 200; else if (sales < 7500) bonus = 500; else if (sales < 10000) bonus = 750; else if (sales < 20000) bonus = 1000; else bonus = 1250; ``` a. 750 b. 1250 c. 500 d. 1000

Computer Science & Information Technology

The ________ Web App allows team members to work together when creating spreadsheets, such as budget worksheets

A) Excel B) Word C) PowerPoint D) OneNote

Computer Science & Information Technology

The combination of Network layer address and port is referred to as a(n) ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Probing your network for security flaws should occur once a quarter, and a complete audit of your security should be completed ________ per year

a. Once b. Twice c. Three times d. None of the above

Computer Science & Information Technology