What is displayed when the button is clicked? Private Sub btnDisplay_Click(…) Handles btnDisplay.Click Dim a, b as String Dim x as Integer a = “How now brown cow.” b = “brown” x = FindIt(a, b) txtBox.Text = CStr(x) End Sub Function FindIt(ByVal z1 as String, ByVal z2 as String) As Integer Dim x as Integer x = z1.IndexOf(z2) End Function “How now”

Question:
What is displayed when the button is clicked?
Private Sub btnDisplay_Click(…) Handles btnDisplay.Click
Dim a, b as String
Dim x as Integer
a = “How now brown cow.”
b = “brown”
x = FindIt(a, b)
txtBox.Text = CStr(x)
End Sub
Function FindIt(ByVal z1 as String, ByVal z2 as String) As Integer
Dim x as Integer
x = z1.IndexOf(z2)
End Function
“How now”

1. 8

2.0

3.An error

4. None of the above

Posted Date:-2022-02-11 09:44:21


More MCQS Questions and answers

Search
Olete Team
Online Exam Test Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Test website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!