Function is invoked with Call statement 3. Consider the following Sub procedure: Private Sub btnDisplay_Click(ByVal sender As System.Object, ByVal e As _ System.EventArgs) Handles btnDisplay.Click Dim q As Double q = 4 Do While q < 15 q = 2 * q - 1 Loop txtOutput.Text = CStr(q) End Sub What is the output displayed when the button is clicked? 4. Consider the following Sub procedure: Private Sub btnDisplay_Click(ByVal sender As System.Object, ByVal e As _ System.EventArgs) Handles btnDisplay.Click Dim q As Double q = 3 lstOut.Items.Clear() Do q = 2 * q - 1 lstOut.Items.Add(q) Loop Until (q > 15) End Sub How many times is the Do Loop body repeated? |