Solved

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

Question 8

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


A) jaminBBenjaminen
B) BenjaminBenjamin
C) njaminBe
D) None of the above

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents