VB.NET Windows Forms Controls and Events
This quiz covers VB.NET Windows Forms controls, event handling, and fundamental software development concepts. Topics include Button, Form, and Timer controls, common control events, event-driven programming, the Rnd function, and software development lifecycle phases.
Questions
The Button control can be activated:
- programmatically through the click event.
- by clicking the button with the mouse.
- with the form’s DefaultButton property.
- Both a and b.
- All of the above.
The CancelButton property belongs to which object?
- Button
- Form
- Label
- TextBox
- Timer
A click event procedure stud for the label control can be created by:
- selecting the object and event from the code editor window’s drop-down boxes.
- typing the code in the code editor window.
- by double clicking the control.
- Both a and b.
- All of the above.
In event-driven programming an event is generated by:
- the system.
- a user’s action.
- the program itself.
- Both a and b.
- All of the above.
Which is not a common control event?
- Click
- SingleClick
- DoubleClick
- MouseMove
- MouseDown
The Tick event is found only in which object?
- Form
- Button
- TextBox
- Label
- Timer
The Activated event is found only in which object?
- Form
- Button
- TextBox
- Label
- Timer
The Rnd statement will generate a(n):
- decimal value between 0.01 and 1.00.
- integer value between 0.01 and 1.00.
- decimal value between 0.0 and 1.0.
- integer value between 0.0 and 1.0.
- decimal value between 0.0 and up to 1.0, but not including 1.0.
The analysis phase of software development involves:
- collecting the requirements about what the program will accomplish.
- creating a detailed plan on how the program will accomplish the requirements.
- writing the software with a program such as VB.NET.
- Both a and b.
- All of the above.
Which phase of project development typically costs the most?
- Analysis
- Design
- Implementation
- Maintenance
- Documentation