Windows Forms Controls and Programming Basics

Quiz covering TextBox, ListBox, and ComboBox controls along with basic programming logic in Visual Studio .NET

10 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

With A = False and B = True, which statement evaluates as False?

  1. A OR A
  2. A OR B
  3. B OR A
  4. B OR B
  5. None are true.
Question 2 Multiple Choice (Single Answer)

Which TextBox method does not use the clipboard?

  1. Clear
  2. Copy
  3. Cut
  4. Paste
  5. All of these methods use the clipboard
Question 3 Multiple Choice (Single Answer)

Which TextBox property should always be changed first?

  1. AcceptsReturn
  2. BorderStyle
  3. Font
  4. Name
  5. Text
Question 4 Multiple Choice (Single Answer)

Which is not a valid value for the ListBox SectionMode Property?

  1. None
  2. One
  3. MultiSimple
  4. MultiExtended
  5. All of the above.
Question 5 Multiple Choice (Single Answer)

Setting the SelectedIndex property of a ListBox to -1 will:

  1. cause an error.
  2. cannot be done.
  3. de-select any selected item.
  4. Both a and b.
  5. All of the above.
Question 6 Multiple Choice (Single Answer)

Which method of a ListBox will remove just one item at a time?

  1. Items.RemoveAt
  2. Item.RemoveAt
  3. Items.ClearAt
  4. Item.ClearAt
  5. Items.Clear
Question 7 Multiple Choice (Single Answer)

The Items property of a ComboBox:

  1. is a collection of items.
  2. is the same as the Items property of a ListBox.
  3. contains methods and properties.
  4. Both a and b.
  5. All of the above.
Question 8 Multiple Choice (Single Answer)

Which value for the ComboBox DropDownStyle property allows a user to type in data?

  1. DropDown
  2. DropDownSimple
  3. DropDownList
  4. Both a and b.
  5. All of the above.
Question 9 Multiple Choice (Single Answer)

Which two controls combined to form the ComboBox control?

  1. ListBox and TextBox
  2. ListBox and InputBox
  3. ListBox and MsgBox
  4. Label and TextBox
  5. Label and InputBox
Question 10 Multiple Choice (Single Answer)

When a condition in an If...Then statements tests true:

  1. the next Else statement is activated.
  2. the next If statement is activated.
  3. the next Then statement is activated.
  4. the End If statement is activated.
  5. a condition can never test true.