If we have a list box 1st Box as shown in the given image de
If we have a list box (1st Box) as shown in the given image describe completely and clearly the effect of each of the following statements 1stBox.Items.Clear() 1stBox.Items.RemoveAt(0) 1stBox. Items. Remove(\"Math\") 1stBox.Items.Add(\"Law\") 1stBox.Items.RemoveAt(lstBox.selectedlndex) 1stBox.Items.RemoveAt(lstBox.Items.Count- 1) 1stBox.Sorted = true 1stBox.Items.Contains(\"English\") returns a
Solution
3)clears all the items in the list .
4)remove the element history because it is the first element.
5)remove the element \"math\"
6)add the element \" law\"
7)the selected index is \"math\" so this line removes the element \"math\"
8)removes the element at index 4 I.e.,CIS
9)sorts the elements
10)false because their is no item called English
