Ask Question
7 January, 03:41

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

+2
Answers (1)
  1. 7 January, 07:37
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers