Examlex

Solved

What Will Be the Output of the Following Program When (.( .

question 27

Multiple Choice

What will be the output of the following program when the button is clicked on? Private Sub btnDisplay Click (.( . . ) Handles btnDisplay.Click
Dim word, result As String
word = "Benjamin"
result = Rotate (word)
result = Rotate (result \& word)
result = Rotate (result)
txtBox. Text = result
End Sub
Function Rotate (var As String) As String
Dim varlength As Integer
varlength = var. Length
Return var.Substring(1) & var. Substring (0, 1)
End Function


Definitions:

Related Questions