What will be displayed when the button is clicked?

Private Sub btnDisplay_Click(...) Handles btnDisplay.Click
Dim num As Double = 9
Dim sqrRoot As Double
If num < 0 Then
MessageBox.Show("Cannot find square root. Result set to zero.", "Error")
sqrRoot = 0
Else
sqrRoot = Math.Sqrt(Num)
End If
txtBox.Text = CStr(sqrRoot)
End Sub```

```
(A) 0
(B) 3
(C) 6
(D) An error will occur.

(B) 3

Computer Science & Information Technology

You might also like to view...

How many characters are in the empty string?

a. -1 b. 1 c. undefined d. 0

Computer Science & Information Technology

In a threaded tree, we can use the left null pointer as a thread.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology