Q. What will be the output of the following Visual Basic code?
Code:Dim intScores As Integer = {78, 83, 75, 90}
Array.Reverse(intScores)
Dear candidates you will find MCQ questions of Visual Basics here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
Dim intScores As Integer = {78, 83, 75, 90}
Array.Reverse(intScores)
Dim intSum As Integer Dim intY As Integer Do While intY < 3 For intX As Integer = 1 To 4 intSum = intSum + intX Next intX intY = intY + 1 Loop lblSum.Text = Convert.ToString(intSum)
strCityState = "Nashville, TN"
intCharIndex = strCityState.IndexOf("TN")
intCount =0;
Do
MessageBox.Show("Hello")
intCount += 1
Loop While intCount > 3