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

Private Sub btnDisplay_Click(...) Handles btnDisplay.Click
Dim word1, word2, newWord As String
word1 = "shower"
word2 = "about"
newWord = word1.Substring(0, 4) & word2.Substring(0, 3)
If newWord.IndexOf("how") = -1 Then
txtBox.Text = "The new word was not found."
Else
txtBox.Text = "Found it."
End If
End Sub
```

```
(A) The new word was not found.
(B) Found it.
(C) Syntax error
(D) No output

(B) Found it.

Computer Science & Information Technology

You might also like to view...

The isupper method converts a string to all uppercase characters.

a. true b. false

Computer Science & Information Technology

Pages that contain cells that will not be printed are shown in _____.

A. white B. light blue C. yellow D. gray

Computer Science & Information Technology