Ask Question

Which of the following statements selects the "blue" item, which appears fourth in the lstColor control? a. lstColor. SlectIndex = 3b. lstColor. SlectIndex = 4d. lstColor. SlectItem = 3e. lstColor. SlectIitem = 4

+5
Answers (1)
  1. 1 March, 14:32
    0
    a. lstColor. SlectIndex = 3

    Explanation:

    Listbox uses index to represent items.

    The index starts its count from 0. Meaning that, the first item has an index of 0, the second has an index of 1 and so on.

    From the question, the said color is the 4th in the list; going by the simple analysis stated above, it's index is 4-1 = 3.

    The syntax for that is

    listboxname. Selectedindex = index

    i. e.

    lstColor. SelectIndex = 3.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Which of the following statements selects the "blue" item, which appears fourth in the lstColor control? a. lstColor. SlectIndex = 3b. ...” 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