MCQOPTIONS
Saved Bookmarks
This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Visual Basic knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
A _______________ allows you to select from a list of choices. |
| A. | Combo Box |
| B. | Combo List |
| C. | Check Box |
| D. | Radio Button |
| Answer» B. Combo List | |
| 2. |
Which of the following rounds the contents of the intNum variable to three decimal places? |
| A. | Math.Round(3, intNum) |
| B. | Math.Round(intNum, 3) |
| C. | Round.Math(intNum, 3) |
| D. | Round.Math(3, intNum) |
| Answer» C. Round.Math(intNum, 3) | |
| 3. |
Which of the following statements prevents a form from being closed? |
| A. | e.Cancel = False |
| B. | e.Cancel = True |
| C. | e.Close = False |
| D. | sender.Close = False |
| Answer» C. e.Close = False | |
| 4. |
A form s ____________ event is triggered when the computer processes the Me.Close() statement. |
| A. | Close |
| B. | Closing |
| C. | FormClose |
| D. | FormClosing |
| Answer» E. | |
| 5. |
A form s _________________ event is triggered when you click the Close button on its title bar. |
| A. | Close |
| B. | CloseForm |
| C. | FormClose |
| D. | FormClosing |
| Answer» E. | |
| 6. |
The _______________ event occurs when the user either types a value in the text portion of a combo box or selects a different item in the list portion. |
| A. | ChangedItem |
| B. | ChangedValue |
| C. | SelectedItemChanged |
| D. | TextChanged |
| Answer» E. | |
| 7. |
The item that appears in the text portion of a combo box is stored in which property? |
| A. | SelectedText |
| B. | SelectedValue |
| C. | Text |
| D. | TextItem |
| Answer» D. TextItem | |
| 8. |
Which of the following selects the Cat item, which appears third in the cboAnimal control? |
| A. | cboAnimal.Selected = 2 |
| B. | cboAnimal.Selected = Cat |
| C. | cboAnimal.Text = Cat |
| D. | cboAnimal.SelectedIndex= Cat |
| Answer» D. cboAnimal.SelectedIndex= Cat | |
| 9. |
The items in a combo box belong to which collection? |
| A. | Items |
| B. | List |
| C. | ListBox |
| D. | Values |
| Answer» B. List | |
| 10. |
Which property is used to specify a combo box s style? |
| A. | ComboBoxStyle |
| B. | DropDownStyle |
| C. | DropStyle |
| D. | Style |
| Answer» C. DropStyle | |