Ask Question
5 November, 04:19

Dim Inventory () as Integer = {357, 126, 220}Call Stock (Inventory (2), Me. lblOutput) Sub Stock (ByVal Number As Integer, ByRef lblLabel As Label) Me. lblLabel. Text = NumberEnd SubWhich is displayed in the label when the code is executed? a) 357b) 126c) 220d) None of the above

+3
Answers (1)
  1. 5 November, 04:46
    0
    The answer is "Option c".

    Explanation:

    In the given visual basic code, an integer array "Inventory" is declared, that includes 3 elements, that are "357, 126, and 220". In the next line, a call stock function is used, in the function, the array is passed as a parameter and in array parameter, the index value that is "2" is passed. This function use label to print array index value, that is "220". and other options are incorrect that can be described as follows:

    Option a and Option b both are wrong because array indexing always starts with 0 and ends with n-1, and in this array, it will take index value 2, which is not equal to 357 and 126.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Dim Inventory () as Integer = {357, 126, 220}Call Stock (Inventory (2), Me. lblOutput) Sub Stock (ByVal Number As Integer, ByRef lblLabel ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers