Ask Question
8 July, 13:52

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

+3
Answers (1)
  1. 8 July, 14:11
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers