Question
Dim intScores As Integer = {78, 83, 75, 90}
Array.Sort(intScores)
Array.Reverse(intScores)
a.
78, 83, 75,90
b.
75,78, 83,90
c.
78,75,83,90
d.
90,83,78,75
Posted under Visual Basic
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What will be the output of the following Visual Basic code?
Similar Questions
Discover Related MCQs
Q. Which of the following statements assigns (to the intElements variable) the number of elements contained in the intNums array?
View solution
Q. Which of the following assigns the string “Rover” to the fifth element in a one-dimensional array named strPetNames?
View solution
Q. If the elements in two arrays are related by their subscripts, the arrays are called as ________________ arrays.
View solution
Q. The strStates and strCapitals arrays are parallel arrays. If Illinois is stored in the second element in the strStates array, where is its capital (Springfield) stored?
View solution
Q. A _______________ resembles a table.
View solution
Q. We can determine number of elements in two-dimensional array by _________________
View solution
Q. The _____________ in a two-dimensional array specifies the elements row and column position.
View solution
Q. Each element in a two-dimensional array is identified by a unique combination of _______________
View solution
Q. The subscripts are _________ than the row and column in which the element is located.
View solution
Q. To traverse two dimensional array you require ________________ loops.
View solution
Q. Which of the following declares a two-dimensional array that has three rows and four columns?
View solution
Q. The intSales array is declared as follows:
Dim intSales(,) As Integer = {{1000, 1200, 900, 500, 2000}, {350, 600, 700, 800, 100}}.
The intSales(1, 3) = intSales(1, 3) + 10 statement will _______________
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Visual Basic? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!