NEW
Font size
WorksheetsChapter 5-1: Review Questions & Exercises
Total questions: 10
Worksheet time: 6mins
Which of the following methods is used to add items to a list box?
Item
Add
AddList
ItemAdd
The items in a list box belong to which collection?
Values
List
Items
ListItems
A(n) _________ provides a simple way to gather input without placing a text box on a form.
InBox
Input
GetInput
InputBox
An input box returns the value entered by the user as this
String
Integer
Single
Boolean
Visual Basic automatically adds this to a list box when it contains more items than can be displayed.
Larger list box
Scroll bar
Second form
Message box
This method erases all items from a list box.
Erase
Items.Remove
Items.ClearItem
Items.Clear
A(n) ___________ displays a list of items and allows the user to selectan item from the list.
combo box
message box
input box
list box
Which of the following statement will display input box?
strUserInput = InputBox("Enter distance.", "Provide a Value")
strUserInput = Input("Enter distance.", "Provide a Value")
InputBox("Enter distance.", "Provide a Value")
strUserInput = InputBox.Text
Which statement will store values in the Items property with code at runtime?
lstStudents.Items.Add("Sarah")
lstStudents.Items.Clear()
lstStudents.Items.Add = "Sarah"
lstStudents.Add("Sarah")
When a user click the input box's Cancel button, the function returns the string value from the input box’s text box.
True
False
