Questions and CORRECT Answers
Control - CORRECT ANSWER - A ToolTip is a ________ that allows the programmer to
create a small popup message that displays when the user places the mouse over a control.
Nested Loop - CORRECT ANSWER - A ________ is a loop inside another loop.
Integer Variable - CORRECT ANSWER - A counter is a(n) ________ that can be
incremented or decremented each time a loop runs.
A scroll bar is automatically added when a ListBox contains more items than can be displayed. -
CORRECT ANSWER - How can you cause scroll bars to appear in a ListBox at runtime?
It will display once. - CORRECT ANSWER - How many times will the message I love
Visual Basic be displayed?
Dim intCount As Integer = 0
Do
lstOutPut.Items.Add("I love Visual Basic")
intCount += 1
Loop While intCount > 10
It causes intX to be incremented by 5 each time the loop repeats. - CORRECT ANSWER -
In the following statement that begins a For...Next loop, what is the purpose of the Step clause?
For intX = 1 to 100 Step 5
Sorted - CORRECT ANSWER - Setting this property to True will put the items in a
ListBox in alphabetical order.
String - CORRECT ANSWER - The InputBox function always returns a ________ value.
, Items.Insert - CORRECT ANSWER - The ________ method can be used to place a new
item at any position in a ListBox.
Items - CORRECT ANSWER - The entries in a ListBox are stored in the ________
property.
0 - CORRECT ANSWER - The first item in a ListBox has an index of ________.
contains the text of the currently selected item - CORRECT ANSWER - The SelectedItem
property of a ListBox ________.
Items.Clear - CORRECT ANSWER - This method erases all the items in a ListBox.
Items.Count - CORRECT ANSWER - To get the number of items stored in a ListBox, use
the ________ property.
You need to specify a negative step value in order to execute this loop. - CORRECT
ANSWER - What is wrong with the following code?
Dim intIndex As Integer
For intIndex = 5 To 1
ListBox.Items.Add(intIndex.ToString)
Next
25 - CORRECT ANSWER - What value is assigned to lblSum.Text by the following code
?
Dim intTotal As Integer = 0
For intOuter = 1 To 3
For intInner = intOuter To 3