Windows Forms Controls and Programming Basics
Quiz covering TextBox, ListBox, and ComboBox controls along with basic programming logic in Visual Studio .NET
Questions
Question 1 Multiple Choice (Single Answer)
With A = False and B = True, which statement evaluates as False?
- A OR A
- A OR B
- B OR A
- B OR B
- None are true.
Question 2 Multiple Choice (Single Answer)
Which TextBox method does not use the clipboard?
- Clear
- Copy
- Cut
- Paste
- All of these methods use the clipboard
Question 3 Multiple Choice (Single Answer)
Which TextBox property should always be changed first?
- AcceptsReturn
- BorderStyle
- Font
- Name
- Text
Question 4 Multiple Choice (Single Answer)
Which is not a valid value for the ListBox SectionMode Property?
- None
- One
- MultiSimple
- MultiExtended
- All of the above.
Question 5 Multiple Choice (Single Answer)
Setting the SelectedIndex property of a ListBox to -1 will:
- cause an error.
- cannot be done.
- de-select any selected item.
- Both a and b.
- All of the above.
Question 6 Multiple Choice (Single Answer)
Which method of a ListBox will remove just one item at a time?
- Items.RemoveAt
- Item.RemoveAt
- Items.ClearAt
- Item.ClearAt
- Items.Clear
Question 7 Multiple Choice (Single Answer)
The Items property of a ComboBox:
- is a collection of items.
- is the same as the Items property of a ListBox.
- contains methods and properties.
- Both a and b.
- All of the above.
Question 8 Multiple Choice (Single Answer)
Which value for the ComboBox DropDownStyle property allows a user to type in data?
- DropDown
- DropDownSimple
- DropDownList
- Both a and b.
- All of the above.
Question 9 Multiple Choice (Single Answer)
Which two controls combined to form the ComboBox control?
- ListBox and TextBox
- ListBox and InputBox
- ListBox and MsgBox
- Label and TextBox
- Label and InputBox
Question 10 Multiple Choice (Single Answer)
When a condition in an If...Then statements tests true:
- the next Else statement is activated.
- the next If statement is activated.
- the next Then statement is activated.
- the End If statement is activated.
- a condition can never test true.