Multiple Choice
Which code example will calculate the number of checked items in a CheckedListBox named clbMovieNames and store the number in intCheckedMovies?
A) Dim intCheckedMovies As Integer = 0 intCheckedMovies = clbMovieNames.Items.Count - 1
B) Dim intIndex As Integer Dim intCheckedMovies As Integer = 0
For intIndex = 0 To clbMovieNames.Items.Count - 1
If clbMovieNames.GetItemChecked(intIndex) = True Then
IntCheckedMovies += 1
End If
Next
C) Dim intIndex As Integer Dim intCheckedMovies As Integer = 0
For intIndex = 0 To clbMovieNames.Items.Count - 1
If clbMovieNames.GetItemChecked(intIndex) = True Then
LstChecked.Items.Add(clbCities.Items(intIndex) )
End If
Next
D) Dim intIndex As Integer Dim intCheckedMovies As Integer = 0
For intIndex= 1 To clbMovieNames.Items.Count
If clbMovieNames.GetItemChecked(intIndex) = True Then
IntCheckedMovies += 1
End If
Next
Correct Answer:

Verified
Correct Answer:
Verified
Q4: Which of the following statements correctly displays
Q5: Which statement is True in regard to
Q6: The entries in a ListBox are stored
Q7: Setting this property to True will put
Q8: Which type of loop uses a pretest
Q10: This method erases all the items in
Q11: A _is a loop inside another loop.<br>A)
Q12: What is the difference in the execution
Q13: All of the following are valid <b>ComboBox</b>
Q14: What is wrong with the following code?